You are here: Re: css bug in IE: circumvention, anybody? « HTML « IT news, forums, messages
Re: css bug in IE: circumvention, anybody?

Posted by Els on 06/25/05 13:01

Els wrote:

> Greg N. wrote:
>
>> Neredbojias wrote:
>>
>>>>have a look at my test case at http://coolhaus.de/misc/csstest.htm .
>>>>
>>>>There is a div whose width is defined through some margin definitions.
>>>>
>>>>Within the div is a table with width 100%, hence it should assume the
>>>>same width as the div. In Mozilla, this works fine. Under IE though,
>>>>the table exceeds the specified div width.
>>>>
>>>>Can anybody come up with a circumvention how to make this work under both
>>>>FF and IE?
>>
>>> On the div put style:position:relative;
>>
>> Does not work for me. Any other ideas?
>
> Yup, leave it as is, but add this line to the top of your file:
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd">
>
> Makes IE try to follow the same standards as the other browsers ;-)

Eh.. addition: background isn't a valid attribute in Strict, so
instead, add the style to your styleblock:
td{background-image:url(ttp://coolhaus.de/misc/smily.gif);}

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

 

Navigation:

[Reply to this 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

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