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 trialVasyl Kozhushko
6,405 Points.extra-content col are missed
For some reason browser doesn't show .extra-content col.
<!DOCTYPE html> <html> <head> <title>Flexbox Layout</title> <meta name="viewport" content="width=device-width"> <link rel="stylesheet" href="css/normalize.css"> <link rel="stylesheet" href="css/style.css"> </head> <body> <div class="main-wrapper"> <header class="main-header"> <ul class="main-nav"> <li class="main-logo"><h1><a href="#">Logo</a></h1></li> <li><a href="#" data-icon="">Home</a></li> <li><a href="#" data-icon="">About</a></li> <li><a href="#" data-icon="">Blog</a></li> <li><a href="#" data-icon="">Contact</a></li> </ul> </header> <div class="main-banner"> <h1>This is the Main Banner Heading</h1> <p>Andouille pork chop pancetta drumstick ground round beef ribs swine brisket ham.</p> </div> <div class="content-row"> <div class="extra-content col"> <h3>Extra Content</h3> <p>Filet mignon turkey flank doner strip steak. Frankfurter ham hock turkey, venison sirloin pig chuck shank capicola hamburger doner spare ribs boudin.</p> <hr> <p> Drumstick bresaola meatloaf ham hock salami tri-tip landjaeger beef filet mignon biltong boudin turkey.</p> </div> <div class="primary-content col"> <h2>Primary Content</h2> <img class="feat-img" src="http://lorempixel.com/400/300" /> <p>Bacon ipsum dolor sit amet chicken pork ground round brisket corned beef ball tip shank tail salami filet mignon ham hock pork belly venison shankle. Pig kielbasa drumstick sausage pork chop boudin. Chicken t-bone salami pork chop, beef ribs kevin ham tri-tip beef venison biltong brisket.</p> <p>Venison strip steak meatball chicken, brisket prosciutto sirloin. Capicola drumstick brisket tri-tip salami. Chicken beef jerky, tail turkey prosciutto cow ham sirloin boudin tenderloin. Meatloaf tri-tip turducken brisket andouille, pork belly corned beef fatback hamburger.</p> </div> <div class="secondary-content col"> <h3>Secondary Content</h3> <p>Strip steak tenderloin kevin swine meatloaf capicola, doner beef turducken pancetta corned beef pork loin shoulder.</p> <hr> <p>Pork filet mignon leberkas, tail swine venison pancetta turkey shoulder brisket chalkers likes hamburgers.</p> </div> </div> <footer class="main-footer"> <p>©2014 Example Layout</p> </footer> </div> </body> </html>
3 Answers
Andrew Gross
5,333 PointsThe layout of your questions is a little jumbled but from what I can see this line in your style.css is why you wouldn't see that
.extra-content, .main-banner { display: none; }
you would need to set the display appropriately in one of your media queries
Vasyl Kozhushko
6,405 PointsI just find in css in main part, the next thing .extra-content, .main-banner { display: none; }
in media query we define .main-banner so it shows to me, but .extra-content not so it s missed. what I need to do?
Andrew Gross
5,333 Points.extra-content {
display:block;
}
would need to be placed in the media query if you want it displayed as block on that screen size
Vasyl Kozhushko
6,405 PointsVasyl Kozhushko
6,405 Pointsthat's only when I apply style.css