css - How can I make the content area a different colour from the wrapper? -



css - How can I make the content area a different colour from the wrapper? -

i'd 2 things: first of these centre content area of 1200px width. i'd navigation menu width well. sec thing i'd alter colour of content area white; whilst allowing background area (wrapper) around border of content area remain same colour.

/* background */ body { background-color: #ecf0f1; overflow-y: scroll; } *{ margin:0; padding:0; } img { border:0; } /* area */ #wrapper { margin:0 auto; position: absolute; width: 1200px; background:#339999; font-size:1.20em; } /* header */ #header { margin-top: 40px; height: 100px; width: 100%; } /* page */ #content { min-height:400px; padding:23px; text-align:justify; line-height:1.5; }

it great if could- me , other users looking format webpage in similar manner- tell me how set content area , navigation bar

thank you!

#menu { position: fixed; z-index: +1; width: 1200px; background-color: #e74c3c; height: 100px; margin: 0 auto; /* add together create center */ left: 0; /* give position of fixed menu */ right: 0; /* give position of fixed menu */ } #content { min-height: 400px; background-color: #fff; /* color white content */ padding: 23px; text-align: justify; line-height: 1.5; }

css navigation textarea

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -