html - How do you make the banner and CSS menu a specific color, and the rest a different color? -


So, I do not know how to really explain it a banner on my website (this is a picture) and Below the banner is a menu, and I want a dark brown background on the menu and above, a very light brown background with the rest How do I do this?

This my website layout currently appears (excuse of the awesome art): Enter the image details here </ P> <p> This is what I want to look like a website: (notice the background colors) <img src =

  & lt; Html & gt; & Lt; Body & gt; & Lt; Div style = 'background: # 123' & gt; Your banner & lt; / Div & gt; & Lt; Div style = 'background: # 567' & gt; Your text & lt; / Div & gt; & Lt; / Body & gt; & Lt; / Html & gt;  

or

  & lt; Html & gt; & Lt; Top & gt; & Lt; Link rel = stylesheet type = "text / css" href = "my.css" & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Div class = 'banner' & gt; Your banner & lt; / Div & gt; & Lt; Div class = 'main' & gt; Your text & lt; / Div & gt; & Lt; / Body & gt; & Lt; / Html & gt;  

and my.css

 . Banner {background: # 123}. Main {background: # 456}  

Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -