The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › DIV position: fixed; Center Horizontally
**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.
Also a screen shot of why it is so important the images have exact pixel values for positioning.
I don’t see what else I can do to accomplish this.
Any input would be appreciated.
Did you try to wrap those images in a div with the width of the images and centering that?
Thy are in a div.
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.