Solution to IE Display:table problem

Discussion in 'CSS' started by Kranklin, Jul 17, 2006.

  1. #1
    I would like to use the display:table and table-cell styles in CSS. i Know FireFox supports it but I need Internet Explorer to support it too.

    Im a good Javascript programmer, but have never written an HTC and I would like to have one that turns Divs with the display:table style into actual tables. If this is possible, I would like to go this route. If there is a better way already, please let me know, I will Atempt to write this, and if i am successfull, i will post it
     
    Kranklin, Jul 17, 2006 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    Explain your problem instead of asking how to do what you've decided is the solution.

    cheers,

    gary
     
    kk5st, Jul 17, 2006 IP
  3. Kranklin

    Kranklin Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I design/develop, and host websites for customers. I am trying to make the websites W3C compliant. I used to use Tables to layout my designs, however i would like to start using Divs and CSS to layout it out, mostly so i can have a separate stylesheet for printing

    You cant do everything Tables do with just css, unless you use the "display:table" style. I've searched and tried for alternative ways to acheive the same effect, but they aren't nearly as flexable than just using Tables or the "display:table" style.

    Anyway, i'm pretty set on using the Display:table style but it does not work in IE, so i am thinking of writing a behavior that will a turn a div with that style into an actual table.
     
    Kranklin, Jul 17, 2006 IP
  4. FeelLikeANut

    FeelLikeANut Peon

    Messages:
    330
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #4
    It may seem that way to someone who has just started learning a new set of techniques, but it just isn't so.

    I don't believe you will find any method to do that, and you certainly won't find a method that will work for all IE users.

    Most likely there is a better approach. You need to take a step back and rethink. (Basically what kk5st said.)
     
    FeelLikeANut, Jul 17, 2006 IP
  5. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #5
    So, again. What are you trying to do? Not, how are you trying to do it?

    cheers,

    gary
     
    kk5st, Jul 18, 2006 IP