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 trial

CSS CSS Layout Techniques Display Modes Column Layout with Inline-Block

Dan Petrie
Dan Petrie
8,228 Points

Can'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; }

Paul Yabsley
Paul Yabsley
46,713 Points

Can't see anything there that would stop it displaying. Maybe include more of your code?

Could you post your entire HTML and CSS? or if it's too large could you post a codepen.io?

Dan Petrie
Dan Petrie
8,228 Points

HI Guys, I just ran it in code pen and worked liked a charm?

Please accept my apologies. Guess it is just a bug. Dan

That's fine. Happy coding!

1 Answer

Dom Smith
Dom Smith
3,091 Points

The 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

Can you explain? I don't see how that would affect not seeing the div at all.