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

Why div background-color doesn´t fill the whole box?

This is my css *{ background-color: rgb(245, 240, 240);

}

Navegacao{

border:solid black 3px;
padding: 35px;
font-size: 20px;
background-color: gray;

} img{ width:600px; height:500px; border-radius: 50%; }

Hi Rafael,

can you post both - the relevant html code and the relevant css code? That would make it possible to help.

For example: What exactly is "Navegacao"? It cerainly is not a valid element selector to begin with... ;-)

Happy coding, Nils

Its #Navegacao

How can I post my code without it being all together?

1 Answer

Hi Rafael,

when you post something: At the bottom under the posting-textarea and above the "Post Comment" button there is a -> "Reference this Markdown Cheatsheet for syntax examples for formatting your post."

There you find explanation on how to format code in your post and you would do one code format part for the html and one for the css.

But maybe easier is just "taking a snapshot" of your workspace - if you are writing the code in a workspace. The button icon for taking a snapshot is on the right upper part of the workspace (next to the fork and preview icons).

Hope you find it, Nils