Technical Support Forums

Technical Support Forums » Web Album Generator

Adding a fixed background without including the background image in the album? (5 posts)


About this Topic

Tags

  1. vujade
    Member
    Posted 4 years ago

    Hi everyone, I was wondering if anyone can help. Im currently setting up my online portfolio for my photography work, and i love this program, however, i want the backgrounds to match the rest of the site - is there a way a fixed background can be done without including the background image in the album? by taking the image information from a page in my site? or a picture on my site?

    Any help would be much appreciated

    Cheers :o)

  2. Mark
    Administrator
    Posted 4 years ago

    If you would like to specify an existing image to use as your background, you can add the following line to the bottom your stylesheet template (first click on "File" then "Edit Stylesheet Template"):

    body { background-image: url(http://www.example.com/myimage.jpg); }

    Where, of course, "http://www.example.com/myimage.jpg" is replaced with the URL of the image you'd like to use. Hope this helps!

  3. vujade
    Member
    Posted 4 years ago

    thats great i'll try that, thanks. does this make the image fixed? or is there something else to change for that? thanks again

  4. Mark
    Administrator
    Posted 4 years ago

    Yes, something like this should do the trick:

    body {
       background-image: url(http://www.example.com/myimage.jpg);
       background-attachment: fixed;
    }

    You can also choose to have the image tiled horizontally or vertically, among other properties. There's a pretty good summary of them available at W3Schools. Hope this helps.

  5. paval
    Member
    Posted 3 years ago

    I like the idea of using a background image. I tried inserting the code as given in the example above.... I viewed my album, and yes I had the background now, but my text colors for my album had changed to the default colors instead of my custom colors.

    Am I missing something or doing something wrong?


Reply

(required)