Reply to Re: Table height issue in IE7

Your name:

Reply:


Posted by Jukka K. Korpela on 02/12/07 18:03

Scripsit leodippolito@gmail.com:

> I have this code:

Why don't we have your URL?

> <table id="mainTable" cellpadding="0" cellspacing="0"
> style="height: 100%; width: 100%;">
- -
> <tr id="contents" style="height: 100%;">
- -
> In IE7 I get a vertical scrollbar and the table looks larger (in
> height) than it should be.

You have asked for a 100% height for the <tr>, so what should a browser do
when there are other rows as well? How can it make 60px + 100% + 60px equal
100%?

Omitting that height setting does not help, though. It removes the vertical
scrollbar, but the row heights get a bit wild. IE is not very clever with
tables. So use just CSS with <div> elements as Jonathan suggested.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

[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

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