Forums

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

Home Forums CSS center with margin:auto – chrome/safari issue

  • This topic is empty.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #38491
    capricorn
    Member

    Hallo

    I have a problem with this:

    http://jsfiddle.net/UDc98/8/

    Chrome, Safari: aside text column has no impact to the image
    FireFox: image does not fall down when the browser window width is too small
    IE8/9, Opera: works perfect

    #104317
    Paulie_D
    Member

    I don’t understand what you want to have happen.

    #104320
    capricorn
    Member

    If You dont understend, this img will help
    http://www.imgupload.pl/images/75165497171705270829.jpg

    #104322
    wolfcry911
    Participant

    Its because you have given #fot an overflow: hidden; which changes its block formatting context. The rules for which aren’t as specific as you’d like and each engine has a different interpretation (in fact, I’d be willing to wager that IE is wrong).

    You still haven’t given us enough information about what you would like to happen. Assuming you’d like the image to center between the left of wrapper and left edge of float, you could do something like this…

    #104323
    Paulie_D
    Member

    I can’t get the image to center but: http://jsfiddle.net/Paulie_D/ASkQ3/3/

    #104324
    Vermaas
    Participant

    What do you think of this: http://jsfiddle.net/savver/UDc98/16/

    #104325
    Paulie_D
    Member

    @Vermaas Unfortunately, that doesn’t solve the issue of having the image drop down when the width is insufficient. (see his comment against FF).

    I like Wolfcry’s solution better than mine.

    #104326
    Vermaas
    Participant

    Hmm you mean like this: http://jsfiddle.net/savver/UDc98/18/

    All the elements will stay on their position. Have checked Chrome, FF, IE (IE7 and IE9), Safari and Opera.

    #104327
    Paulie_D
    Member

    @Vermaas I like that…it’s a more elegant solution provided he can implement the scaling.

    #104328
    Vermaas
    Participant

    @Paulie_D Indeed! It can be even more responsive with some nice little media queries.

    #104334
    capricorn
    Member

    wolfcry911, Your solution fits perfectly to what I need.

    Thanks a lot guys for your help

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