Jump to content
xisto Community
Sign in to follow this  
suicide1405241470

table height question-pls. help

Recommended Posts

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.