suicide1405241470 0 Report post Posted September 10, 2004 Hello,I'm hoping that someone can help me with what seems like a simple question. I'm creating a site that I'd like to design to accomodate different screen resolutions -- I'd like to do this by setting table heights using percentages. My first question is:Is there any drawback to setting heights using percentages? My second, question is:I notice that Dreamweaver MX inserts a <DOCTYPE> tag at the beginning of new files: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://forums.xisto.com/no_longer_exists/ notice that with the Doctype tag, my tables don't resize. If I delete it altogether, they do. I guess I need the doctype tag, though, since my page uses IFRAME. Is there an alternative <DOCTYPES> tag I can use? If I opt for strict compliance by deleting the Transitional bit, the tables still don't work. Can I delete the doctypes tag altogether? Please help! thank you. Share this post Link to post Share on other sites
overture 0 Report post Posted September 10, 2004 you can delete the doctype all together if u are not bothered about being standard compliant which you really dont have to deal with. all the doctype does is state what version of html you are using whether it be strict or transitional, i will give you the tag which deals with i-frames and frames if you want to use it it is up to you. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://forums.xisto.com/no_longer_exists/; I am not sure why but the 100% does not work. This is my hack to get the 100% height to work for you:this is my code that works fine:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://forums.xisto.com/no_longer_exists/; <html><head><title>100% height/Width</title><style type="text/css"><!--body { margin: 0; padding: 0; height: 100%; min-width: 600px; min-height: 100%;}--></style></head><body><table border="0" bordercolor="white" width="100%" height="100%"><tr><td bgcolor="#00ff00">100% width and height</td></tr></table></body></html> anymore trouble post here. Share this post Link to post Share on other sites
r3d1405241470 0 Report post Posted September 10, 2004 it's not working coz table doesn't have an height attribute.not valid <table height="100%">.... instead use height attribute in table cell, td and th<td height="100%">...<th height="100%" >... Share this post Link to post Share on other sites