I am restructuring my tabular format data to show in divs. When I am assigning a css display:inline-block;
, the divs are displaying side by side in IE8 but in IE6, its coming downwards.
Please help.
Thanks in advance.
I am restructuring my tabular format data to show in divs. When I am assigning a css display:inline-block;
, the divs are displaying side by side in IE8 but in IE6, its coming downwards.
Please help.
Thanks in advance.
To make display: inline-block
work in IE6, use this:
selector {
display: inline-block;
*display: inline;
zoom: 1
}
Why does this work? See: Inline block doesn't work in internet explorer 7, 6
I am restructuring my tabular format data to show in divs.
I have to agree with the other comments - that is a bad idea.
You should use a <table>
for tabular data - that's what they're for, semantically!
You have to use display: block; float: left
to achieve that in IE6. But be aware of the box-model problems with IE6 and the usage of width
and padding
.
But as a side note, if you have real tabular data, you should use <table>
. There is no need to switch to <div>
for that task.