Forums

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

Home Forums CSS DIV position: fixed; Center Horizontally

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #46160
    enbs
    Participant

    **I am trying to horizontally center a series of img’s (which contain individual variables for LEFT and TOP, with FIXED position) it is really crucial that the variables for Top and Left remain the same for the position and function of the images.**

    Here’s a jsFiddle sample of what I’m working on.
    http://jsfiddle.net/TPLTz/1/

    Also a screen shot of why it is so important the images have exact pixel values for positioning.
    https://www.dropbox.com/s/c8zdssw4mj8tuuf/Screen%20Shot.png

    I don’t see what else I can do to accomplish this.
    Any input would be appreciated.
    Thanks.

    #141749
    gilgimech
    Participant

    Did you try to wrap those images in a div with the width of the images and centering that?

    #141750
    enbs
    Participant

    Thy are in a div.

    #141752
    Paulie_D
    Member

    If you want to do that you would have to add position relative to the wrapper and then **absolutely** (not fixed) position the gears inside that.

    Fixed position means the element is positioned relative to the browser window **not** to any wrapper.

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