Minuit Mystique (minuit_mystique) wrote in s2expressive,
Minuit Mystique
minuit_mystique
s2expressive

  • Mood:

Is it possible to Stretch the background image - [solved]

Hi, I'm new to LJ and i've been fiddling around with the code for the background for a few days.  I've got a background image i'd like to use, but the problem is i want it to stretch to 100% of the width of the page.  I'd rather not adjust my image size, because I don't quite know how many pixels to make the image so it's big enough to take up the whole page, and besides, some browsers are bigger than others. 

I'm using:
- Browser: Firefox (IE on occassion)
- Account: Plus Account
- Style: Expressive - Haunted House
- Journal: just my normal user journal you get to by clicking on my username

I've got the following code at the moment.

/* background image */
body {
    background-color: #111111 !important;
    background-image: url("http://i39.tinypic.com/2uhs8kn.jpg");
    background-repeat: repeat-y !important;
    background-attachment: scroll !important;
    background-position: center;
    }
I want to know if there is a code that will let me stretch my image so that it will take 100% of the width of the page. instead of having to specify a specific size for it. 

Thanks

Tags: page:backgrounds
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 2 comments