I am trying to align 2 pictures so that as a pair they are centered in a column (leftcol).
In FF the images are centered ok.
In IE6 they are off centre.
I can pad them to look correct in IE6 but then they are off centre in FF.
I have made the container background red, this shows in IE6 but not in FF.
I think my day can only get better.
Keith
In FF the images are centered ok.
In IE6 they are off centre.
I can pad them to look correct in IE6 but then they are off centre in FF.
I have made the container background red, this shows in IE6 but not in FF.
I think my day can only get better.
Code:
CSS
.leftcol{
width:330px;
float:left;
text-align: center;
margin-left:auto;
margin-right:auto;
}
.padcon{
width:300px;
text-align: center;
margin-left:auto;
margin-right:auto;
background-color:#f00;
}
.padv{
width:140px;
float:left;
padding:5px;
}
Code:
HTML
<div class='padcon'>
<div class='padv'>
IMAGE
<!-- ENDIV padv --></div>
<div class='padv'>
IMAGE
<!-- ENDIV padv --></div>
<!-- ENDIV padcon --></div>
Keith