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):
& 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
Post a Comment