kwilson81
03-03-2005, 10:48 AM
URL: http://www.europc.co.uk/europcdev/home.aspx?ProductDetailID=1&ProductID=5491
I'm creating the rounded background for the sub-menus (purple ones around the sides) with the following css/html:
HTML
<div class="spacer"></div>
<div class="sideObjectHeader">
<div class="sideMenuHeaderLeftDiv"></div>
<div class="sideMenuHeaderRightDiv">
<span id="lblText" runat="server" class="sideMenuHeaderDivText">Text</span>
</div>
</div>
<div class="spacer"></div>
CSS
.sideObjectHeader
{
text-align: left;
font-weight: bolder;
color: #e5e5ea;
vertical-align: baseline;
padding: 0px 0px;
margin: 0px 0px 0px 0px;
height: 18px;
display: block;
}
.sideMenuHeaderLeftDiv
{
background: url(images/css/sideHeaderLeft.gif) no-repeat left top;
height: 18px;
position: relative;
z-index: 150;
width: 7px;
}
.sideMenuHeaderRightDiv
{
background: url(images/css/sideHeaderRight.gif) #444473 no-repeat right top;
height: 18px;
padding: 0px 0px 0px 8px;
position: relative;
top: -18px;
}
.sideMenuHeaderDivText
{
position: relative;
top: 2px;
}
Everything looks okay on FireFox/XP but, in IE/XP, there's an extra bit of whitespace below the sub-title. It looks to me like it's the space left by the moving of the lower div up the way.
I tried setting overflow: hidden but this just resulted in the layout breaking - divs tried to span to 100% for some reason so page gets stretched out horizontally.
Does anyone know of any other way to get rid of the whitespace at the bottom of these?
Thanks,
K
I'm creating the rounded background for the sub-menus (purple ones around the sides) with the following css/html:
HTML
<div class="spacer"></div>
<div class="sideObjectHeader">
<div class="sideMenuHeaderLeftDiv"></div>
<div class="sideMenuHeaderRightDiv">
<span id="lblText" runat="server" class="sideMenuHeaderDivText">Text</span>
</div>
</div>
<div class="spacer"></div>
CSS
.sideObjectHeader
{
text-align: left;
font-weight: bolder;
color: #e5e5ea;
vertical-align: baseline;
padding: 0px 0px;
margin: 0px 0px 0px 0px;
height: 18px;
display: block;
}
.sideMenuHeaderLeftDiv
{
background: url(images/css/sideHeaderLeft.gif) no-repeat left top;
height: 18px;
position: relative;
z-index: 150;
width: 7px;
}
.sideMenuHeaderRightDiv
{
background: url(images/css/sideHeaderRight.gif) #444473 no-repeat right top;
height: 18px;
padding: 0px 0px 0px 8px;
position: relative;
top: -18px;
}
.sideMenuHeaderDivText
{
position: relative;
top: 2px;
}
Everything looks okay on FireFox/XP but, in IE/XP, there's an extra bit of whitespace below the sub-title. It looks to me like it's the space left by the moving of the lower div up the way.
I tried setting overflow: hidden but this just resulted in the layout breaking - divs tried to span to 100% for some reason so page gets stretched out horizontally.
Does anyone know of any other way to get rid of the whitespace at the bottom of these?
Thanks,
K