Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Jul 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    <td> height in internet explorer

    Okay, so I am coding a page... I have everything in tables (bad idea, but I had too - long story) and all my design is in my CSS file.

    What I have is a table with tons of TD's, I need to have it in a table so the TD's grow... but I don't want all of them to grow so what is happening is the right ones are growing but other's are growing that I don't want to. (It's really confusing)

    I have set the height in the TD as well as a height in the CSS - works great in firefox... but IE on the other hand, just does what ever the **** it wants... and of course the max-height doesn't work....

    what can I do?

  • #2
    Senior Coder nikkiH's Avatar
    Join Date
    Jun 2005
    Location
    Near Chicago, IL, USA
    Posts
    1,973
    Thanks
    1
    Thanked 32 Times in 31 Posts
    Re-code it with CSS.
    Tables stretch. And they do so according to arbitrary rules set by the browser. Just the way it is, and it's what we love about them.
    But if it must NOT stretch, you need to use a div with set height and overflow set.
    To work around your problem, try using a div set like that in the table cell. Might work...

    If this post contains any code, I may or may not have tested it. It's probably just example code, so no getting knickers in a bunch over a typo, OK? If it doesn't have basic error checking in it, such as object detection or checking if objects are null before using them, put that in there. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
    Bored? Visit
    http://www.kaelisspace.com/

  • #3
    New to the CF scene
    Join Date
    Jul 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for the tip....

    like I said, has to be done in tables, because the height needs to grow together... I orginally had the whole site done in divs and it looked beautiful! EXCEPT when one box got large the rest didn't, so there was lots of white space at the end of the page... so the divs/tables need to grow with each other... if anything can think of a good way to do this, let me know, but I have been working on this for a week (8 hours a day) and this is the best I could come up with, I have re-coded it over and over....

    Just to add:
    Even if I put divs inside of td's and set height to the div, td, tr, etc... it still changes according to the content on the left
    Last edited by Courtnie; 07-11-2005 at 09:26 PM.

  • #4
    New to the CF scene
    Join Date
    Jul 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I figured it out.

  • #5
    New to the CF scene
    Join Date
    Jul 2005
    Location
    New Zealand / Aotearoa
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Courtnie
    I figured it out.
    Could you please, please please pretty please let me know how you figured it out???

    I've been banging my head against a brick wall all day trying to set a cell height to 44px, and it's got the same behaviour you describe... Works a beauty in FF, and IE treats it in ways we don't know.

    Would love to hear what you did to figure it out

    Thanks


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •