Log in

View Full Version : Center fixed background image


Gophers
06-08-2014, 07:21 PM
I cannot give out the website, as it still under construction. but the best possible way to do this. I have try with center fixed::, is their a better css for it.

Edited: I think i got it fix, so thank anyway.

Lynne
06-08-2014, 08:02 PM
You probably also need to set the left and right margins to auto.

CAG CheechDogg
06-08-2014, 08:41 PM
For a centered fixed background use the following in the style variable editor for Global/Document Background


Background Color: your choice
Background Image: url(https://www.yourdomain.com/image/path) fixed
Background Repeat: repeat-y
Units:%
Background Image Horizontal Offset: 50
Background Image Vertical Offset: 0

you don't need to do anything with left or right margins at all ....

Gophers
06-08-2014, 09:29 PM
For a centered fixed background use the following in the style variable editor for Global/Document Background


Background Color: your choice
Background Image: url(https://www.yourdomain.com/image/path) fixed
Background Repeat: repeat-y
Units:%
Background Image Horizontal Offset: 50
Background Image Vertical Offset: 0

you don't need to do anything with left or right margins at all ....


Not using vbulletin 4, using vbulletin 3. unless their a style variable editor for vbulletin 3.

CAG CheechDogg
06-09-2014, 05:43 AM
Not using vbulletin 4, using vbulletin 3. unless their a style variable editor for vbulletin 3.

Oh snaps my Man sorry, I missed that ! ..

Then use the following for css ...

background: url("http://www.yourdomain.com/image/path") repeat-y fixed 50% 0 #000000;