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 trialDan Petrie
8,228 PointsCan't get the 'main banner' to display
My Html
<div class="main-banner">
<h1>This is out main heading!</h1>
<p>Bacon ipsum dolor sit amet chicken</p>
</div>
MY CSS
.main-banner { background: #ebedee; text-align: center; padding: 35px 15px; }
David Tonge
Courses Plus Student 45,640 PointsCould you post your entire HTML and CSS? or if it's too large could you post a codepen.io?
Dan Petrie
8,228 PointsHI Guys, I just ran it in code pen and worked liked a charm?
Please accept my apologies. Guess it is just a bug. Dan
David Tonge
Courses Plus Student 45,640 PointsThat's fine. Happy coding!
1 Answer
Dom Smith
3,091 PointsThe colour isn't correct change to yellow; for example to see the banner. And then use a colour wheel to get the desired colour you want in Hex Decimal form. :)
The colour you had there was white hence why you probably see anything
David Tonge
Courses Plus Student 45,640 PointsCan you explain? I don't see how that would affect not seeing the div at all.
Paul Yabsley
46,713 PointsPaul Yabsley
46,713 PointsCan't see anything there that would stop it displaying. Maybe include more of your code?