home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

DTD problem with tables

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2261
Discussions: 200,937, Posts: 2,379,251, Members: 246,302
Old December 31st, 2005, 07:33 PM   Digg it!   #1 (permalink)
Member
 
Join Date: Dec 2004
Location: Shoreham, England
Posts: 341
DTD problem with tables

Is there actually anyway of forcing a table to stretch to the browser window whilst using a 4.01 DTD?I've tried using both mere height/width attributes and also:

<table style="height:100%; width:100%;>


Thanks anyone who replies...and Happy New Year!
plowman is offline   Reply With Quote
Old December 31st, 2005, 07:37 PM     #2 (permalink)
ph34r t3h g04t
 
Whir's Avatar
 
Join Date: Oct 2001
Location: Kingsford, MI
Posts: 19,552
Blog Entries: 7
I think you can put width=100% outside of style and it'll work.

<table width=100%>

Or is that not kosher anymore?

I never got height to work in style, but I think I got width to. Declare it in your stylesheet as an override.

table.full { width:100% }

Then <table class=full>


Something to try anyhow.
Whir is online now   Reply With Quote
Old December 31st, 2005, 07:46 PM     #3 (permalink)
Member
 
Join Date: Dec 2004
Location: Shoreham, England
Posts: 341
Yeah thanks,

but i can get width to work...its just that darn height!

It does however work when i do not include a DTD...or at least a HTML 4.01 DTD.

How important is it to include a DTD? Anyone? Will there be a fatal consequence if a DTD is not included???

Thanks
plowman is offline   Reply With Quote
Old January 2nd, 2006, 05:02 PM     #4 (permalink)
Member
 
Carl-cox-'s Avatar
 
Join Date: Nov 2002
Location: Kent England
Posts: 395
i think you also have to put the height into the <td> as well to get it to work
Carl-cox- is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tables jpiermarini Webmastering and Programming 2 May 17th, 2005 09:51 PM
TABLES HELP !! soulja Webmastering and Programming 9 June 6th, 2004 05:37 PM
PROBLEM WITH TABLES BEING HIDDEN JimBritt Webmastering and Programming 11 July 7th, 2003 10:11 PM
Tables problem (www.justin-angela.com) implexant Webmastering and Programming 13 January 27th, 2003 05:01 PM
Tables Magicfan89 Webmastering and Programming 7 June 16th, 2002 05:41 PM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (2905)
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Wireless Televisions. (8)
California Passes Anti-Flat-HDTV Le.. (43)
Obama the Muslim (14)
Is the PSU I received dead? (11)
windows vista security holes (9)
HIS HD5770 graphic card question (15)
Install XP pro and a Vista laptop ?.. (11)
Print spooler problem (13)
Foreign voltage (10)
Dept. of HS: NSA 'Helped' Develop V.. (15)
A good PSU? (10)
Recent Discussions
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Partition Magic caused HDD problem (3)
Is the PSU I received dead? (11)
Have you switched yet? (85)
Regular Build (4)
Point and Shoot Camera Suggestions. (2)
Modern Warfare 2 freeze (13)
Wireless Televisions. (8)
wireless user (1)
World's largest Monopoly Game using G.. (332)
Ideal cheap graph card for PC-Gaming? (17)
BIOS won't read disk when I try to fl.. (0)
Install XP pro and a Vista laptop ?? (11)
Graphics Card Upgrade Question (1)
favorit (1)
solutions for virtical white lines on.. (1)
Fire in DVD (2)
Modern Warfare For the PC (33)
radeon x850xt platinum & shader 3 (3)
Wireless Router+Cable Modems and Much.. (0)
Optical Audio A-B Switch (1)
windows vista security holes (9)
The NTDVM CPU has encountered an ille.. (24)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (34)


All times are GMT -4. The time now is 12:47 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28