WordPress.org

Ready to get started?Download WordPress

Forums

Gradient background: permanent on the screen ? (6 posts)

  1. Lydecker
    Member
    Posted 8 years ago #

    Hi,

    I 've just discovered WordPress a few weeks ago...

    I intend to make a gradient background for my blog: I know how to do this using an image, but I've seen on Lorelle's blog (http://lorelle.wordpress.com/) that her background is not fixed; I mean that when you use the scrollbar, the gradient effect is still on your screen, wherever you are on the page...

    Does anyone know how this can be done??

    Thanks!

  2. Lydecker
    Member
    Posted 8 years ago #

    I've worked today on this point but I don't see why my background is fixed!

    Here are the css file:
    'body {
    font: 62.5% 'Lucida Grande', Verdana, Arial, Sans-Serif; /* Resets 1em to 10px */
    color: #444;
    background: #999999 url('styles/mainstyle/bodybackground.jpg');
    background-repeat: repeat-x;
    background-attachement: scroll;
    text-align: center;
    margin: 0 0 30px;
    }'

    Thanks for your help!

  3. yosemite
    Member
    Posted 8 years ago #

    Check your spelling of attachment?
    http://www.w3.org/TR/REC-CSS2/colors.html#q2

  4. Lydecker
    Member
    Posted 8 years ago #

    Thanks for the interesting link Yosemite!
    It works now...

  5. yosemite
    Member
    Posted 8 years ago #

    Good... Maybe mark this resolved?

  6. Lydecker
    Member
    Posted 8 years ago #

    Of course, sorry...
    Due to my mistake in "attachment", there was no difference between "scroll" and "fixed"!

    The css looks like now:

    background: #999999 url('styles/mainstyle/bodybackground.jpg') repeat-x fixed;"

Topic Closed

This topic has been closed to new replies.

About this Topic