Hey,
if i have the following setup:
is there any way to code the css according to the heirarchy in the html?
say like
so that when someone is reading the CSS they know that #mainlogo is a child of #intro?... and would i even want to bother?
if i have the following setup:
Code:
#intro { margin-left: 205px; margin-top: -25px } #mainLogo { display: block; margin-left: auto; margin-right: auto; position: relative; height: 315px; width: 417px; padding: 20px; } ... <div id="intro"> <div id="mainLogo"><img src="images/happy.gif"></div> </div>
say like
Code:
#intro { margin-left: 205px; margin-top: -25px } #intro #mainLogo { display: block; ...
Comment