You are here: Re: How's this for cross-browser table positioning? « HTML « IT news, forums, messages
Re: How's this for cross-browser table positioning?

Posted by Els on 11/03/84 11:34

Curtis wrote:
>
>>> Margin auto works great for Firefox and Opera, but fails for IE
>>> 5--I haven't tested on 6 yet, but no matter. If it fails on 5, we
>>> won't use it.
>>
>> I use both.
>> <div>
>> <table>....</table>
>> </div>
>>
>> div{text-align:center;}
>> table{margin-auto;width:15em;text-align:left;}
>>
>> Works cross-browser.
>
> IIRC, that's the approach taken in the link I cited.

Ah yes, sorry. I didn't actually read the OP, just your reply to
Toby...

> It wouldn't work for us, though, because we're using this
> CSS in a macro line we're feeding to a single element like a
> table in our markup language. IOW, it needs to be a single
> phrase which would normally be between { something;
> something; something } on a CSS.

You can't just give the tables a standard
<div class="table-wrapper"><table> and </table></div>
code in the HTML?

Anyway, if it's important to have one-line macros and you don't want
to alter the HTML, I'd just forget about IE5.0. They would just have
non-centered tables, not a big problem ;-)

> Many thanks to both you and Toby for the feedback!

np :-)

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: Electric Boys - Dying To Be Loved

 

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

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