DTP


 
Lively discussions on the graphic arts and publishing — in print or on the web


Go Back   Desktop Publishing Forum > General Discussions > Web Site Building & Maintenance

Reply
 
Thread Tools Display Modes
Old 08-22-2006, 08:02 AM   #1
dthomsen8
Member
 
dthomsen8's Avatar
 
Join Date: Aug 2005
Location: Philadelphia, PA 19130
Posts: 2,158
Default Table height

Specifying a table height was never valid HTML, but it did and does work with some browsers. Can we do without it? How do we avoid it?

One way is to not use tables for layout, in favor of CSS2 instead. Some designers are still using tables for layout, though, and would like to have valid HTML, and therefore no height specified in a table.
dthomsen8 is offline   Reply With Quote
Old 08-22-2006, 11:55 PM   #2
LoisWakeman
Staff
 
LoisWakeman's Avatar
 
Join Date: Jan 2005
Location: Uplyme, Devon, England
Posts: 1,402
Default

I am never sure why you need to specify the height, as it should reflect the extent of the contents, surely?
LoisWakeman is offline   Reply With Quote
Old 08-23-2006, 05:57 AM   #3
dthomsen8
Member
 
dthomsen8's Avatar
 
Join Date: Aug 2005
Location: Philadelphia, PA 19130
Posts: 2,158
Default Table heights

Quote:
Originally Posted by LoisWakeman View Post
I am never sure why you need to specify the height, as it should reflect the extent of the contents, surely?
Apparently some designs depend on specifying the height. I have been converting an existing (legacy) web site, and taking out the height specifications had not caused me any problems, but from discussions elsewhere, it seems that there are problems doing without the height= in some designs.

http://www.w3.org/TR/html4/struct/tables.html
says that the height= is deprecated, and to use CSS instead.

http://www.liamdelahunty.com/tips/html_table_height.php
says that there are woes connected with taking out height and using CSS instead. In particular, different browsers provide different results.

So, the objective is to separate content from layout, but we certainly want predictable results regardless of browsers, or at least recent browsers, that users might have. It also seems that some Dreamweaver designs insert the height= for tables. See, for example, http://www.zofiaphoto.com, which is discussed elsewhere in this forum, which has a height= on the home page.

Last edited by dthomsen8; 08-23-2006 at 06:01 AM. Reason: Added material
dthomsen8 is offline   Reply With Quote
Old 08-23-2006, 06:56 AM   #4
LoisWakeman
Staff
 
LoisWakeman's Avatar
 
Join Date: Jan 2005
Location: Uplyme, Devon, England
Posts: 1,402
Default

I guess I use KISS designs that don't require pixel perfection, so haven't come across the problem.

There are significant CSS differences in IE and Firefox at current (i.e IE6) versions, because of the differences in the way IE calculates box heights (wrongly) and also as it doesn't respect min- and max- height and width, which are very useful. E.g. if you have a two column design, you may wish to specify a min-height to stop it being ridiculously short in pages without much content.
LoisWakeman is offline   Reply With Quote
Old 08-23-2006, 07:49 AM   #5
Bo Aakerstrom
Member
 
Bo Aakerstrom's Avatar
 
Join Date: Mar 2005
Location: Derby,UK
Posts: 1,316
Default

If you have a height specified and the "text-size" is changed by the viewer, what then!?

Isn't it better to have the height of the content determining the height of its container?

   
__________________
www.boaakerstrom.com
Behance Portfolio
Bo Aakerstrom is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Indenting a Table RJ Emery Web Design 20 06-11-2011 06:16 AM
Calculate Cap Height? michelen Fonts & Typography 4 02-07-2007 08:07 AM
Table free design with CSS dthomsen8 Web Design 1 12-21-2005 08:49 AM
Table Conversion CarlSeiler Web Site Building & Maintenance 31 12-12-2005 06:26 PM
Replace a table with CSS ilox Web Design 7 08-22-2005 07:07 AM


All times are GMT -8. The time now is 10:50 PM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Contents copyright 2004–2014 Desktop Publishing Forum and its members.