Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAurelian Spodarec
10,801 PointsHelp with naming and this OO or whatever is it that im looking for
HI,
SO this code is from my previous project
<article class="col main-col card">
<div class="excerpt-img">
<img src="http://media02.hongkiat.com/programming-myth/programmer.jpg">
</div>
<div class="excerpt-blog-wrapper">
<a href="http://wpblogaureplatform:8888/article/html-post/">
</a><header><a href="http://wpblogaureplatform:8888/article/html-post/">
</a><p class="blog-date"><a href="http://wpblogaureplatform:8888/article/html-post/">August 25, 2016 in
<span class="category">
</span></a><a href="http://wpblogaureplatform:8888/category/html/">HTML</a>
</p>
<a href="http://wpblogaureplatform:8888/article/html-post/"><h3 class="title">Programming Jargon</h3></a>
</header>
<p>
Lrema df dsf dsf sdaf dsf lorema df dsf dsf sdaf dsf lorema df dsf dsf sdaf dsf lorema df dsf dsf sdaf dsf lorema df dsf dsf sdaf dsf lorema df dsf dsf sdaf dsf lorema d
</p>
<p class="blog-author">by <italic>Aurelian Spodarec</italic> </p>
</div><!-- /excerpt-blog -->
</article>
Ans this is what I'm working on now, trying to use best practices and everything the best etc..
So far
<!DOCTYPE html>
<html>
<head>
<title>My Blog | Aurelian Spodarec</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- <link rel="icon" href="../../favicon.ico"> -->
<!-- Core CSS -->
<link rel="stylesheet" href="css/main.css">
<!-- Fonts -->
<link rel="stylesheet" href="css/font-awesome.min.css">
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet" type="text/css">
</head>
<body>
<!-- HEADER
================================================== -->
<header class="main-header">
<div class="inner-header">
<div class="top-header">
<div class="container">
<span id="toggle-menu" class="is-displayed-mobile">
<i class="fa fa-bars" aria-hidden="true"></i>
</span>
<a class="site-logo" href="/">
<h1>Brand Name</h1>
</a>
</div>
</div><!-- /top-header -->
<div class="bottom-header">
<div class="container">
<nav class="navbar" role="navigation">
<ul class="nav is-collapsed-mobile">
<li class="nav__item--current"><a href="">Articles</a></li>
<li class="nav__item"><a href="">Videos</a></li>
<li class="nav__item"><a href="">About</a></li>
<li class="nav__item"><a href="">Snippets</a></li>
<li class="nav__item"><a href="">Resources</a></li>
<li class="nav__item"><a href="">Contact</a></li>
</ul>
</nav>
</div><!-- /container -->
</div><!-- /bottom-header -->
</div><!-- /inner-header -->
</header>
<!-- Article/Videos
================================================== -->
<main class="main-content">
<div class="container">
<div class="grid">
<article class="grid__col--4 card">
</article>
<article class="grid__col--4 card">
</article>
<article class="grid__col--4 card">
</article>
</div><!-- /grid -->
</div>
</main>
<!-- FOOTER
================================================== -->
<footer class="main-footer">
<div class="bar">
<div class="container">
</div><!-- /container -->
</div><!-- /bar -->
<div class="footer-content">
<div class="container">
</div><!-- /container -->
</div><!-- /footer-content -->
<div class="bar copyright">
<div class="container">
</div><!-- /container -->
</div><!-- /bar -->
</footer>
<!-- Scripts
================================================== -->
<script type="text/javascript" src="scss/vendors/js/jquery.js"></script>
<script type="text/javascript" src="scss/vendors/js/scripts.js"></script>
</body>
</html>
Now, look only main-content. i need to make an general excerpt, how would you do it? I started with gird and then applying card which is background white, and border, how woudl you style the code frmo my previous project, to a better code with OO like im just trying to talk.
Aurelian Spodarec
10,801 PointsHello Mr Andersson, the software matrix is ready.
Object Oriented CSS
Aurelian Spodarec
10,801 Pointsbasically OOCSS lol
Aurelian Spodarec
10,801 PointsOh, i think it's actually this what im after
With the BEM (Block, Element, Modifier) methodology we're able to define a naming convention that will help make our CSS modular, portable and easier to understand by other designers and developers.
Christian Andersson
8,712 PointsChristian Andersson
8,712 PointsHello Mr. Bond,
What's OO? I also don't understand your question.
Kindly, "M".