Reply to Re: nested divs IE7 vs Firefox

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация