eteich
07-02-2010, 12:50 AM
So I've been trying to assemble a bunch of divs into a box that I can put content into
The CSS I'm using is:
<style type="text/css">
#UL {
float:left;
height:25px;
width:25px;
}
#UR {
float:left;
height:25px;
width:25px;
}
#UP {
background-image:url(UP.jpg);
background-repeat:repeat-x;
float:left;
height:25px;
width:100%;
}
#DL {
float:left;
height:25px;
width:25px;
}
#DR {
float:left;
height:25px;
width:25px;
}
#DN {
background-image:url(DN.jpg);
background-repeat:repeat-x;
float:left;
height:25px;
width:100%;
}
#RT {
background-image:url(RT.jpg);
background-repeat:repeat-y;
float:left;
width:25px;
height:100%;
}
#LF {
background-image:url(LF.jpg);
background-repeat:repeat-y;
float:left;
width:25px;
height:100%;
}
#SDD_CONTENT {
background-color:#000;
height:100%;
width:100%;
float:left;
overflow:visible;
}
#SDD_CONTAIN {
height:600px;
min-width:600px;
float:left;
overflow:visible;
}
#SDD_TOP {
height:25px;
width:600px;
float:left;
overflow:visible;
clear:both;
}
#SDD_BOTTOM {
height:25px;
width:100%;
float:left;
overflow:visible;
}
#SDD_MIDDLE {
height:100%;
width:100%;
float:left;
overflow:visible;
}
</style>
The structuring is:
<!-- Contain -->
<div id="SDD_CONTAIN">
<!-- top -->
<div id="SDD_TOP">
<div id="UL"><img src="UL.jpg"></div>
<div id="UP"></div>
<div id="UR"><img src="UR.jpg"></div>
</div>
<!-- End Top -->
<!-- Middle -->
<div id="SDD_MIDDLE">
<div id="LF"></div>
<!-- Content -->
<div id="SDD_CONTENT">Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente </div>
<!-- End COntent -->
<div id="RT"></div>
</div>
<!-- End Middle -->
<!-- Bottom -->
<div id="SDD_BOTTOM">
<div id="DL"><img src="DL.jpg"></div>
<div id="DN"></div>
<div id"DR"><img src="DR.jpg"></div>
</div>
<!-- End Bottom -->
</div>
<!-- End Contain -->
I can't manage to get things to stay where they need to be with out exact sizies. DO I need to apply some padding-left and padding-right into The #up, #dn and #sdd_content to get the objects left and righ of them to display inline.
Also how do I get the #RT and #LF divs to actually expand to 100% of the vertical space within the #middle div?
Should I make them in to classes with in the divs?
ANy help would be greatly appreciated.
The CSS I'm using is:
<style type="text/css">
#UL {
float:left;
height:25px;
width:25px;
}
#UR {
float:left;
height:25px;
width:25px;
}
#UP {
background-image:url(UP.jpg);
background-repeat:repeat-x;
float:left;
height:25px;
width:100%;
}
#DL {
float:left;
height:25px;
width:25px;
}
#DR {
float:left;
height:25px;
width:25px;
}
#DN {
background-image:url(DN.jpg);
background-repeat:repeat-x;
float:left;
height:25px;
width:100%;
}
#RT {
background-image:url(RT.jpg);
background-repeat:repeat-y;
float:left;
width:25px;
height:100%;
}
#LF {
background-image:url(LF.jpg);
background-repeat:repeat-y;
float:left;
width:25px;
height:100%;
}
#SDD_CONTENT {
background-color:#000;
height:100%;
width:100%;
float:left;
overflow:visible;
}
#SDD_CONTAIN {
height:600px;
min-width:600px;
float:left;
overflow:visible;
}
#SDD_TOP {
height:25px;
width:600px;
float:left;
overflow:visible;
clear:both;
}
#SDD_BOTTOM {
height:25px;
width:100%;
float:left;
overflow:visible;
}
#SDD_MIDDLE {
height:100%;
width:100%;
float:left;
overflow:visible;
}
</style>
The structuring is:
<!-- Contain -->
<div id="SDD_CONTAIN">
<!-- top -->
<div id="SDD_TOP">
<div id="UL"><img src="UL.jpg"></div>
<div id="UP"></div>
<div id="UR"><img src="UR.jpg"></div>
</div>
<!-- End Top -->
<!-- Middle -->
<div id="SDD_MIDDLE">
<div id="LF"></div>
<!-- Content -->
<div id="SDD_CONTENT">Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente Contente </div>
<!-- End COntent -->
<div id="RT"></div>
</div>
<!-- End Middle -->
<!-- Bottom -->
<div id="SDD_BOTTOM">
<div id="DL"><img src="DL.jpg"></div>
<div id="DN"></div>
<div id"DR"><img src="DR.jpg"></div>
</div>
<!-- End Bottom -->
</div>
<!-- End Contain -->
I can't manage to get things to stay where they need to be with out exact sizies. DO I need to apply some padding-left and padding-right into The #up, #dn and #sdd_content to get the objects left and righ of them to display inline.
Also how do I get the #RT and #LF divs to actually expand to 100% of the vertical space within the #middle div?
Should I make them in to classes with in the divs?
ANy help would be greatly appreciated.