Hi, I'm trying to do something that has always been easy with tables -
namely use a three column layout, and above the main layout, show three
images - one on the absolute left, one on the absolute right, and one
in the middle. The one in the middle needs to be centered, as various
browsers display slightly differently.
However, using the CSS and code below, either the first image is not
shown (IE) or the right image is shown below (Firefox).
I really can't figure out what is the problem:
CSS:
#logobar {position: relative;
left:0px;
width:auto;
height:23px;
border: none;
text-align: center;
}
#l {position: absolute;
float:left;
width:153px;
margin:auto;
}
#c {position: relative;
margin:auto;
width: auto;
vertical-align: middle;
background: white;
text-align: center;
}
#r {position: absolute;
float:right;
right: 0px;
width:-152px;
margin: auto;
}
HTML:
<div id="logobar">
<span id="l"><img src="images/l1.gif"></span>
<span id="c"><img src="images/m1.gif"></span>
<span id="r"><img src="images/r1.gif"></span>
</div>
Any suggestions ?
Thanks
SS.