Subsitute for Float for IE?

Discussion in 'HTML & Website Design' started by dvncfll01, Dec 5, 2009.

  1. #1
    Well if you do Float lets say right in CSS for links the links well float to the right and appear as link,link,link but in IE it isn't the are listed like

    link
    link
    link

    how can I get the links align straight in IE?
     
    dvncfll01, Dec 5, 2009 IP
  2. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #2
    Is it doing it correctly in other browsers?
     
    drhowarddrfine, Dec 5, 2009 IP
  3. dvncfll01

    dvncfll01 Active Member

    Messages:
    608
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    58
    #3
    yes Mozilla is show the links straight but in IE its showing them listed downwards
     
    dvncfll01, Dec 5, 2009 IP
  4. kow

    kow Member

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #4
    Maybe add display:block to them, a test case online would be helpful, this can be a result of an overwriting style, defined earlier.
     
    kow, Dec 6, 2009 IP
  5. hdewantara

    hdewantara Well-Known Member

    Messages:
    541
    Likes Received:
    47
    Best Answers:
    25
    Trophy Points:
    155
    #5
    My IE8 (quirks & other modes) somehow shows links in a line.

    <html>
    <head>
    <style type="text/css">
    .links{
      float:right;
    }
    
    </style>
    </head>
    
    <body>
    <a href="#" class="links">link1</a>
    <a href="#" class="links">link2</a>
    <a href="#" class="links">link3</a>
    </body>
    </html>
    HTML:
     
    hdewantara, Dec 8, 2009 IP
  6. Piggy

    Piggy Active Member

    Messages:
    574
    Likes Received:
    9
    Best Answers:
    1
    Trophy Points:
    70
    #6
    Stick all the links inside a div? I'm not sure, and I can't play around with it without having some files to work with =P
     
    Piggy, Dec 8, 2009 IP
  7. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #7
    dvncfll01, you need to show us some code. How the heck are we supposed to guess what you did? What if the problem is some easy-to-spot error?

    As far as I know you can float links in IE no problem. I can think of one big bug in IE6 where if the li's were floated with no set width and the anchors were set to display: block, IE6 (and only IE6) will make the anchors 100% wide, which would stop them from stacking like you see in other browsers.

    So, post code, and we can solve this. It should be pretty easy. But we're not psychic. We need the code.
     
    Stomme poes, Dec 9, 2009 IP