You are here: Re: table row heights « HTML « IT news, forums, messages
Re: table row heights

Posted by Bergamot on 01/04/07 20:31

admin@daytonalink.com wrote:
>
> Every
> mainstream calendar that I know of has consistent row heights.

Those are probably minimum heights, not absolute. An overflow condition
in tables (i.e. more content than will fit in the specified space)
automatically expands the cell height and/or width as needed. You'd need
to manipulate the data server-side first, or client-side with JavaScript
to change that behavior.

> <table style="height:100px">
> How would I get the the two rows to have the same heights without
> assigning each of them a height?

Unless the content is all graphics, setting the height in px units is
not advised. For textual content, ems are a much better choice. And I
suggest not setting a height on the whole table, especially if the
number of rows is variable.

If you put the rules in a stylesheet instead of inline, you can set all
the cell heights with one descendant rule, plus it won't matter how many
rows you have, they'll all be equal heights by default.

<table class="calendar">

table.calendar td { height: 5em; }

--
Berg

 

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

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