usawh Posted January 12, 2009 Share Posted January 12, 2009 Hi I would like to have a fixed image like this site http://www.to-hawaii.com but only on one side of the page. How can I do that ? regards, usawh Quote Link to comment Share on other sites More sharing options...
htmlstig Posted January 12, 2009 Share Posted January 12, 2009 are you talking about the sand images? if so and you would just like something similar down one side you can just set your image as a background and set it to repeat verticaly. body { background: url(link to image.gif) repeat-y; } or if you dont want the background to scroll put body { background: url(link to image.gif) repeat-y fixed; } Quote Link to comment Share on other sites More sharing options...
rascle Posted January 16, 2009 Share Posted January 16, 2009 Just to clarify the code given above would be inserted in a CSS format. Eg. <style type="text/css"> body { background: url(link to image.gif) repeat-y; } </style> Quote Link to comment Share on other sites More sharing options...
haku Posted January 19, 2009 Share Posted January 19, 2009 Aesthetically, sites with fixed backgrounds look old and outdated. Something to consider before fixing your background. Quote Link to comment Share on other sites More sharing options...
usawh Posted January 24, 2009 Author Share Posted January 24, 2009 Hi Thanks What if I wanted to have random fixed background each time the page is loaded ? How do I go about doing that ? regards, usawh Quote Link to comment Share on other sites More sharing options...
haku Posted January 25, 2009 Share Posted January 25, 2009 There are a few ways to do it. * You can set up your css file as a php file, and add php logic that calls up a random image each time * You can set up your server to process css files as php, and again add php logic that calls up a random image each time * You can dynamically output a random inline background image in your body using php Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.