Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Why dose IE clear the floats?

  • This topic is empty.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #27072
    zardos
    Member

    Hi, i want all this divs to be floated right on one singel row, it workes fine in FF and Chrome but IE seames to flear the floates and the all end up over eachother. Is this IE querk or am i just thning wrong, and how do i fix it?

    Code:
    img
    Delicious

    Twitter

    FaceBook

    Thanks

    #67483
    AshtonSanders
    Participant

    If I remember correctly:

    In general when you float a div, the width goes from 100% to as small as possible (auto?)… but not in IE. It stays at 100%. I’ve had to assign a width to the Div as well…

    Hope that helps.

    #67507
    zardos
    Member

    oki that would probably work, but i really would like to be able to not give every box an different id :/ is there a way around it?

    Thanks

    #67515
    TheDoc
    Member

    You don’t have to give each box its own id, you already have classes on them. Just apply the width to the classes.

    #67518
    zardos
    Member

    yes my bad, i meant that i don’t wont to another class ether , i want to box to be generic so i dont need a special class depeidin on the length of the networks name :/

    #67523
    AshtonSanders
    Participant

    You can try "width:auto" , but I don’t think that will work…

    It might be best to do a "display:inline" instead of doing float: left…

    #67524
    zardos
    Member

    Thanks, will do, but i really must say, i hate IE :D

    #67525
    AshtonSanders
    Participant

    Then you are a real web developer ;)

Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘CSS’ is closed to new topics and replies.