By d.deman on
I have been trying to get my drupal site to look like the site I made in HTML. It's pretty much done besides the fact that my td or table height doesn't work. I set it to 100% and it works fine in my HTML website but for some reason it doesn't work in the drupal site. I used the exact same HTML and when I set the height to a pixel value it does work. Even deleting my css doesn't do anything with the height. Can anyone help?
Comments
I don't think that is valid
I don't think that is valid in XHTML 1.0. Check to make sure your DOCTYPE is compatible with what you want to do. You can also try style="height: 100%;"
I am not sure about this as I just woke up but it seems correct :)
Tried that
I tried that and that didn't work either
Don't ever use...
The td height value. Google "td height" and you'll see what I mean. Depending on who you are talking to they would tell you to use only css, which it sounds like would cause you to scrap everything you already have now and reinvent the wheel, or to just use transparent 1 pixel gifs sized vertically and horizontally to do what you need to. (google "1 pixel gif").
=====
Bloggyland.com
Hosting for pre-tuned/pre-configured Drupal installations
Instantly activated site with many extra modules
Drupal specific support, SSH/FTP/cPanel
doesn't work
I put everything in css already and that didn't work. And using the pixel gif does nothing because I need it the table to be 100% of the page not the image 100% of the table.
It sounds like you're trying
It sounds like you're trying to stretch the table to reach the bottom of the page, from which I infer that you're using a table for layout purposes.
If that's the case, then it's time to give up on that approach. The use of tables for layouts is obsolescent, and is dying a slow, painful death. It's not going to work well with XHTML, it won't work well with CSS, etc.
A great deal has been written on using CSS for layout. Eric Costello has a useful set of links on CSS layout at http://www.glish.com/css/.
Gary Feldman