steffn
02-20-2008, 12:55 PM
Hi, I have been going insane on a little problem I am having with a design I am trying to put together.
I have a box made out of two divs (in order to give the box two set of borders)
which in turn has two divs in it for content and a header. These inner boxes are set to Width: / Height: 100% but are still larger than the parent divs...
I think it might be easier to see what I am talking about rather than reading my not-so-good explanation of it.
http://www.steffeno.net/temp/test.html
code below:
<html>
<head>
<style type="text/css">
body {
margin:0px;
padding:0px;
font:11px verdana, arial, helvetica, sans-serif;
color:#fff;
background-color:#1a242d;
}
#c1c {
position:absolute;
top:100px;
left:721px;
width:283px;
height:245px;
padding:0px;
border:1px solid #010409;
}
#greyborder {
width:100%;
height:100%;
background-color: #29333c;
border:1px solid #58606b;
}
#title {
margin:5px 5px 5px 5px;
width:100%;
height:22px;
padding:0px;
background: url(http:www.steffeno.net/temp/headerdots.gif);
}
#boxcontent
{
z-index:1000;
text-align: left;
width: 100%;
padding: 0px 5px 0px 5px;
height:100%;
background-color: #3C18A5;
margin:0px 0px 0px 0px;
}
</style>
</head>
<body>
<div id="c1c">
<div id="greyborder">
<div id="title"><img src="http:www.steffeno.net/temp/recentposts.gif" alt=""></img></div>
<div id="boxcontent"><p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam ullamcorper justo vel ligula. Morbi imperdiet sapien sed augue. Cras sed neque. Ut nisl lorem, sagittis at, malesuada sed, fringilla sed, nibh. Morbi orci metus, porta id, condimentum nec, facilisis vel, justo. Nullam interdum arcu in arcu. In elementum. Nunc in est a arcu adipiscing ornare. Morbi ultrices magna id nibh. Ut massa. Suspendisse condimentum nunc vitae mauris. Vivamus nec leo. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae;</p></div>
</div>
</div>
</body>
</html>
Any help on this would be very much appreciated!!
thanks
I have a box made out of two divs (in order to give the box two set of borders)
which in turn has two divs in it for content and a header. These inner boxes are set to Width: / Height: 100% but are still larger than the parent divs...
I think it might be easier to see what I am talking about rather than reading my not-so-good explanation of it.
http://www.steffeno.net/temp/test.html
code below:
<html>
<head>
<style type="text/css">
body {
margin:0px;
padding:0px;
font:11px verdana, arial, helvetica, sans-serif;
color:#fff;
background-color:#1a242d;
}
#c1c {
position:absolute;
top:100px;
left:721px;
width:283px;
height:245px;
padding:0px;
border:1px solid #010409;
}
#greyborder {
width:100%;
height:100%;
background-color: #29333c;
border:1px solid #58606b;
}
#title {
margin:5px 5px 5px 5px;
width:100%;
height:22px;
padding:0px;
background: url(http:www.steffeno.net/temp/headerdots.gif);
}
#boxcontent
{
z-index:1000;
text-align: left;
width: 100%;
padding: 0px 5px 0px 5px;
height:100%;
background-color: #3C18A5;
margin:0px 0px 0px 0px;
}
</style>
</head>
<body>
<div id="c1c">
<div id="greyborder">
<div id="title"><img src="http:www.steffeno.net/temp/recentposts.gif" alt=""></img></div>
<div id="boxcontent"><p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam ullamcorper justo vel ligula. Morbi imperdiet sapien sed augue. Cras sed neque. Ut nisl lorem, sagittis at, malesuada sed, fringilla sed, nibh. Morbi orci metus, porta id, condimentum nec, facilisis vel, justo. Nullam interdum arcu in arcu. In elementum. Nunc in est a arcu adipiscing ornare. Morbi ultrices magna id nibh. Ut massa. Suspendisse condimentum nunc vitae mauris. Vivamus nec leo. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae;</p></div>
</div>
</div>
</body>
</html>
Any help on this would be very much appreciated!!
thanks