Posted by John Hosking on 02/14/07 15:26
geoff@iam.unibe.ch wrote:
> [Attribution missing for Jonathan N. Little, who wrote:]
>>Well you should use <table style="float: right;'> and not deprecated
>><table align="right">,
>>
> Thanks for the replies. Unfortunately the same problem exists when I
> use style-float instead of align-right!
>
> z-index doesn't have any effect either.
>
> I have posted the example above at the following url
>
> http://www.iam.unibe.ch/~geoff/minimal.html
>
> View it in FF and IE and you'll see the problem.
Add width:500px; to the white div. Tested in IE6.
You can also exchange the table in your code:
<table style="float: right;">
<tbody><tr><td><div style="width: 150px; height: 200px;
background-color: red;">hello world</div></td></tr>
</tbody></table>
for *just* a div, and float the *div* right:
<div style="width: 150px; height: 200px; background-color: red;">hello
world</div>
Test. Export styling. Test again. Etc.
Also recommended (by 4 out of 5 wemasters): add doctype for HTML 4.01
Strict. Coats the stomach and settles upset IE.
HTH
--
John
[Back to original message]
|