Results 1 to 15 of 15

Thread: Table Height Property in IE

  1. #1
    (。◕‿‿◕。) Recognized Member Jojee's Avatar
    Join Date
    Dec 1999
    Posts
    9,611
    Contributions
    • Former Cid's Knight

    Moogle IE Sucks

    Apparently internet explorer doesn't recognize the table height property, nor does it recognize style="height: 159px;" nor does it recognize style="max-height: 159px;" so how am I supposed to set a table height? It looks fine when I don't have a lot of text that stretches the page, but when I have to scroll it completely screws up. This works in Firefox and every other browser.
    Last edited by Jojee; 08-07-2008 at 01:08 AM.


    Wat
    is
    going
    on
    wtf
    rawr

  2. #2
    Old school, like an old fool. Flying Mullet's Avatar
    Join Date
    Apr 2003
    Location
    Napping in a peach tree.
    Posts
    19,185
    Articles
    6
    Blog Entries
    7
    Contributions
    • Former Administrator
    • Former Cid's Knight
    • Former Senior Site Staff

    Default

    HTML Table Height woes
    Unfortantly, the HTML standard published by the World Wide Web Consortium (W3C) and now adopted by most browsers is that there isn't a height attribute for tables. The thinking seems to be, that tables should be used for presenting tabular information and not for layouts.
    One thing they're suggesting is putting the table in a div which has the height attribute set.
    Figaro Castle

  3. #3
    (。◕‿‿◕。) Recognized Member Jojee's Avatar
    Join Date
    Dec 1999
    Posts
    9,611
    Contributions
    • Former Cid's Knight

    Default

    I'm not sure if that would quite work with what I'm trying to do. My table looks like this:

    <table width="300" border="1">
    <tr><td colspan="3" width="300">Top image - fixed height.</td></tr>
    <tr>
    <td width="100" bgcolor="red">Image. This table is supposed to have a FIXED height.</td>
    <td rowspan="3" width="100">Blah blah blah this is the center, the height in this table is supposed to expand.</td>
    <td rowspan="3" width="100">This is the right sidebar. The height of this table is supposed to expand.</td>
    </tr>
    <tr><td width="100" bgcolor="red">This is the left sidebar content. It's supposed to be FIXED at a certain height.</td>
    </tr>
    <tr>
    <td width="100" bgcolor="red">This is the cell on the left side that's supposed to expand. Instead, the other two are expanding.</td>
    </tr>
    <td colspan="3" width="300">Bottom image - fixed height.</td>
    </tr></table>

    Red = problematic. As you can see, the whole left side is not doing what it's supposed to do.

    Now, I can merge the two top left tables together and just deal with the non-aesthetic qualities of the 3rd one, and use DIVs to regulate how far down the content starts. But I'd rather not have to crop the images and redo the whole layout again. I can't believe IE doesn't have table heights, screw them. There's no way to fix it?


    Edit: Oh and the table is already set to 100% height.

    Edit2: And I tried DIVs before I tried tables, wasted a few hours. ALL of the cells have a background image, and the table itself also has a background image. I couldn't get the divs to be aligned right and for them to expand in the right places, too. I'm much more familiar with tables than with DIVs. Meh I think I'll just go re-crop my images.
    Last edited by Jojee; 08-02-2008 at 09:01 PM.


    Wat
    is
    going
    on
    wtf
    rawr

  4. #4
    Hypnotising you crono_logical's Avatar
    Join Date
    May 2001
    Location
    Back in Time
    Posts
    9,313
    Contributions
    • Former Administrator
    • Former Cid's Knight

    Default

    Why do the three red cells need to be separate? Can't you join them into one tall cell like the others, and use divs for what would have been in the top two to make them the size you want?

    You probably don't need to crop the images either and just use some CSS trickery to fix it together - case in point, look at google search result pages, all the "pictures" (outside the results themselves) are actually the same image and there's only one image for them on the whole page
    for
    Problems playing downloaded videos? Try CCCP


  5. #5
    Last Exile Baloki's Avatar
    Join Date
    Sep 2003
    Location
    Dreaming a dream~
    Posts
    8,425
    Articles
    5
    Blog Entries
    2

    FFXIV Character

    Baloki Kyuu (Sargatanas)
    Contributions
    • Former Senior Site Staff

    Default

    And now we introduce a new villian to our arena, known for carrying out evil among the land "min-height" has been setting minimum height settings on table cells for years now, but can he take on Joy? WE'LL HAVE TO SEE IN OUR NEXT THRILLING INSTALLMENT OF TALES OF VERY LITTLE INTEREST!
    FOA

  6. #6
    (。◕‿‿◕。) Recognized Member Jojee's Avatar
    Join Date
    Dec 1999
    Posts
    9,611
    Contributions
    • Former Cid's Knight

    Default

    lol what Baloki

    I did combine the first two red cells together. The last one I can't combine though, because it's a sidebar bottom closer type thing. You know what I mean? xD Anyway, whatever, I sort of resolved this myself, and screw IE users.


    Wat
    is
    going
    on
    wtf
    rawr

  7. #7
    Last Exile Baloki's Avatar
    Join Date
    Sep 2003
    Location
    Dreaming a dream~
    Posts
    8,425
    Articles
    5
    Blog Entries
    2

    FFXIV Character

    Baloki Kyuu (Sargatanas)
    Contributions
    • Former Senior Site Staff

    Default

    Seriously just set a style="min-height: xxpx;" on the cell...
    FOA

  8. #8
    (。◕‿‿◕。) Recognized Member Jojee's Avatar
    Join Date
    Dec 1999
    Posts
    9,611
    Contributions
    • Former Cid's Knight

    Default

    Shouldn't I be using max height since I want it not to stretch? and max height didn't work. I already changed it anyway. xD


    Wat
    is
    going
    on
    wtf
    rawr

  9. #9
    Recognized Member Jessweeee♪'s Avatar
    Join Date
    Jul 2005
    Location
    i'm on a sandbar help
    Posts
    19,882
    Blog Entries
    12

    FFXIV Character

    Sarangerel Qha (Twintania)
    Contributions
    • Former Cid's Knight
    • Former Site Staff

    Default

    IE is mean! It won't accept the spelling of "grey"!

  10. #10
    Old school, like an old fool. Flying Mullet's Avatar
    Join Date
    Apr 2003
    Location
    Napping in a peach tree.
    Posts
    19,185
    Articles
    6
    Blog Entries
    7
    Contributions
    • Former Administrator
    • Former Cid's Knight
    • Former Senior Site Staff

    Default

    I never use color spellings in html.
    Figaro Castle

  11. #11
    (。◕‿‿◕。) Recognized Member Jojee's Avatar
    Join Date
    Dec 1999
    Posts
    9,611
    Contributions
    • Former Cid's Knight

    Default

    Okay because I'm like making all the threads ever in the help forum, I'll just ask here.

    What's a substitute for line-height in IE? IE doesn't seem to recognize line-height.


    Wat
    is
    going
    on
    wtf
    rawr

  12. #12
    i n v i s i b l e Tech Admin o_O's Avatar
    Join Date
    Jun 2001
    Location
    New Zealand
    Posts
    2,957
    Blog Entries
    1

    FFXIV Character

    Humphrey Squibbles (Sargatanas)

    Default

    Line height is recognised in IE.

    Perhaps you have another CSS style overriding your line-height property? The order of stylesheet rule precedence is: inline (in the tag itself) > &lt;style> tag in the page header > external stylesheet from file. So try setting "line-height: 1px;" in the tag of the element you need to alter the height of since that has the highest precedence.

  13. #13
    (。◕‿‿◕。) Recognized Member Jojee's Avatar
    Join Date
    Dec 1999
    Posts
    9,611
    Contributions
    • Former Cid's Knight

    Default

    o_O I dunno then. I have &lt;div style="line-height: 50px;"&gt; right around the lines, and it shows up fine in Firefox. Just doesn't in IE...??


    Wat
    is
    going
    on
    wtf
    rawr

  14. #14
    i n v i s i b l e Tech Admin o_O's Avatar
    Join Date
    Jun 2001
    Location
    New Zealand
    Posts
    2,957
    Blog Entries
    1

    FFXIV Character

    Humphrey Squibbles (Sargatanas)

    Default

    In that case, you should carefully take note of every style that is applied to that particular div element. If you have another style applied to the parent element of the div (i.e. a style that's also applied to the div), then it may be overriding the line-height you have set in the div.

  15. #15
    (。◕‿‿◕。) Recognized Member Jojee's Avatar
    Join Date
    Dec 1999
    Posts
    9,611
    Contributions
    • Former Cid's Knight

    Default

    Nah, it has to do with how IE doesn't display images and line heights right, I'm guessing. Because with text, IE will display my desired line height fine. But I'm trying to evenly space avatar images without tables, and that didn't work. I fixed it though. I got rid of the line-height div and just put transparent images of my desired height around the images I wanted to show. ^_^


    Wat
    is
    going
    on
    wtf
    rawr

Posting Permissions

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