Reply to 100% height container

Your name:

Reply:


Posted by JD on 05/04/07 09:45

Hi

Suppose I want a container that fills the entire height of the browser
window, regardless of the actual height.

In quirks mode, you can do this:

<table width="70%" height="100%">
<tr>
<td>1</td>
</tr>
</table>

However, how do I do this using CSS in standards mode? Is it possible? This:

<div style="background-color: #009; height: 100%">foo</div>

doesn't work at all.

My workaround, until now, has been to create the illusion of a
100%-height div by placing a y-repeating background on the body and then
positioning a div inside, like so:

http://www.sarroukhs.f2s.com/test/

However, I've just realised that this effect breaks badly when you use
the zoom feature in IE7.

Help appreciated!

[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

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