+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: I need CSS help

  1. #1
    galaxyAbstractor's Avatar
    galaxyAbstractor is offline Community Advocate galaxyAbstractor is on a distinguished road
    Join Date
    Oct 2007
    Location
    Land of Null and Insanity
    Posts
    5,495

    I need CSS help

    I have an image on my age as an background. I use this as the CSS code:
    body {
    background: #EEE url(img/bg.jpeg);
    color: #444;
    font: normal 62.5% "Lucida Sans Unicode",sans-serif;
    margin: 0;
    }
    Now I want the image stay still at the background when you scroll so it should not duplicate itself. How do I do?? Example: The background here at this forum doesen't follow you scrolling so the darker line is always at the top. I want it to stay still so you always can see the darker lines.

  2. #2
    shanes's Avatar
    shanes is offline x10Hosting Member shanes is an unknown quantity at this point
    Join Date
    Oct 2007
    Posts
    35

    Re: I need CSS help

    It layers itself because the image itself isn't big enough to cover the whole span area.
    Use this instead:
    Code:
    background-attachment: URL HERE ;
    background-color: #EEE ;
    Last edited by shanes; 11-17-2007 at 09:04 AM.


  3. #3
    galaxyAbstractor's Avatar
    galaxyAbstractor is offline Community Advocate galaxyAbstractor is on a distinguished road
    Join Date
    Oct 2007
    Location
    Land of Null and Insanity
    Posts
    5,495

    Re: I need CSS help

    It didn't work. I typed in it like this:
    background-attachment: img/bg.jpeg ;
    background-color: #EEE ;

  4. #4
    supajason's Avatar
    supajason is offline x10 Lieutenant supajason is an unknown quantity at this point
    Join Date
    Oct 2007
    Location
    England........:-)
    Posts
    288

    Re: I need CSS help

    i think it should be:
    Code:
    background-image: url(img/bg.jpeg); 
    background-attachment: fixed
    supajason was here

  5. #5
    galaxyAbstractor's Avatar
    galaxyAbstractor is offline Community Advocate galaxyAbstractor is on a distinguished road
    Join Date
    Oct 2007
    Location
    Land of Null and Insanity
    Posts
    5,495

    Re: I need CSS help

    It almost worked. The image appered but it still repeat itself as before.

  6. #6
    supajason's Avatar
    supajason is offline x10 Lieutenant supajason is an unknown quantity at this point
    Join Date
    Oct 2007
    Location
    England........:-)
    Posts
    288

    Re: I need CSS help

    Answer:

    Code:
    background-repeat: no-repeat;
    supajason was here

  7. #7
    galaxyAbstractor's Avatar
    galaxyAbstractor is offline Community Advocate galaxyAbstractor is on a distinguished road
    Join Date
    Oct 2007
    Location
    Land of Null and Insanity
    Posts
    5,495

    Re: I need CSS help

    The background still scrolls.

  8. #8
    supajason's Avatar
    supajason is offline x10 Lieutenant supajason is an unknown quantity at this point
    Join Date
    Oct 2007
    Location
    England........:-)
    Posts
    288

    Re: I need CSS help

    Hmmmm what size is the picture?


    Code:
    <style type="text/css">
    body 
    {
    background-image: url('xxxxxxxxxxxx');
    background-repeat: no-repeat;
    background-attachment: fixed
    }
    </style>
    i cant access your site to see?
    supajason was here

  9. #9
    galaxyAbstractor's Avatar
    galaxyAbstractor is offline Community Advocate galaxyAbstractor is on a distinguished road
    Join Date
    Oct 2007
    Location
    Land of Null and Insanity
    Posts
    5,495

    Re: I need CSS help

    the pic is 996x1022. You can see it here http://jagf.pcriot.com/flash/

  10. #10
    Zenax's Avatar
    Zenax is offline Lord Of The Keys Zenax is an unknown quantity at this point
    Join Date
    Jul 2006
    Location
    The Brilliant United Kingdom
    Posts
    1,339

    Re: I need CSS help

    your website does not load.
    Regards,
    Zenax

+ Reply to Thread
Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers