Nesting dividers on CSS has been giving me a headace for a long, long time.
It seems to work when nesting one div:
With the following stylesheet
But then what I do if i want to nest a div, in a div in a div e.g
With the following CSS.
It doesnt seem to work, can anybody help me out.
Reputation will be awarded
It seems to work when nesting one div:
HTML:
<html>
<body class="content">
<div id="holder">
<div id="navigation">
bob
</div>
</div>
</body>
</html>
With the following stylesheet
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;
}
But then what I do if i want to nest a div, in a div in a div e.g
HTML:
<html>
<body class="content">
<div id="holder">
<div id="navigation">
<div id="button1">
bob
</div>
<div id="button2">
bob
</div>
</div>
</div>
</body>
</html>
With the following CSS.
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