Nesting dividers on CSS has been giving me a headace for a long, long time.
It seems to work when nesting one div:
HTML Code:<html> <body class="content"> <div id="holder"> <div id="navigation"> bob </div> </div> </body> </html>
With the following stylesheet
But then what I do if i want to nest a div, in a div in a div e.gCode:body { font-family: Microsoft Sans Serif, Verdana, Palatino Linotype, Arial, Monaco; background: #FFFFFF; } .content #holder { colour: #000000; width: 1000px; height: 780px; } .content #navigation { padding-left:20px; padding-right:20px; }
With the following CSS.HTML Code:<html> <body class="content"> <div id="holder"> <div id="navigation"> <div id="button1"> bob </div> <div id="button2"> bob </div> </div> </div> </body> </html>
Code:body { font-family: Microsoft Sans Serif, Verdana, Palatino Linotype, Arial, Monaco; background: #FFFFFF; } .content #holder { colour: #000000; width: 1000px; height: 780px; } .content #navigation { padding-left:20px; padding-right:20px; } .content #button1 { width: 500px; float: left; } .content #button2 { width: 500px; float: right; }
It doesnt seem to work, can anybody help me out.
Reputation will be awarded


LinkBack URL
About LinkBacks

Reply With Quote

