-
Fixed contents
I have created a background to go on the website and have manage to apply it successfully, but i want to have the contents on the page "fixed" so it stays in the centre and fits in with the background.
The background:
http://media.katienpeter.com/templates/css/vsharebg.jpg
The video site:
http://media.katienpeter.com/index.php
It works fine when in widescreen (attachment) but not when the display window is different (not maxamized)
So it works sort of like the main site:
http://katienpeter.com/wordpress/
-
Re: Fixed contents
In the BODY class of the styles.css put this:
Code:
background: url(../images/yourbackgroundimage.jpg) repeat-y 50% 0 #ffffff;
background-attachment:fixed;
Note the background image properties for the repeat and color...change that to suit your site (whether it's no-repeat, repeat-x, repeat-y or whatever color the background would be if the image wasn't there).
Also: you *may* have to set the width as well as the max and min width of the page as a whole. I like to use 1000px for the width of pages.
-
Re: Fixed contents
works perfectly thank you!
-
Re: Fixed contents
You're very much welcome. Glad to be of help.