Forums

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

Home Forums CSS [Solved] background positioning issue in css

  • This topic is empty.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #151874
    javascriptnewbie
    Participant

    What’s background-position: center; not working? Explanation needed, please.

    http://jsfiddle.net/h123er2/MAE8r/

    #151877
    Paulie_D
    Moderator
    #151879
    javascriptnewbie
    Participant
    #151880
    Paulie_D
    Moderator

    I’m not sure what it is you are asking.

    Here’s an example with a larger div.

    Are you expecting something else.

    #151881
    javascriptnewbie
    Participant

    wanted the box to be centered inside that div without using margin

    #151883
    wolfcry911
    Participant

    the background is centered, but you’ve restricted the width and height of the #image div…

    #151884
    Paulie_D
    Moderator

    The image IS centered in the div, that’s what background-position:center does.

    What is CAN’T do is center the div inside another div…for that you need margins.

    It might also be easier to help you if you used complete sentences rather than the quick short replies.

    #151890
    javascriptnewbie
    Participant

    How do you thank a user on this forum, is there any button for that?

    #151891
    Paulie_D
    Moderator

    Unfortunately not.

    I’m sure whoever deserves them is grateful.

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