45 users online (0 members and 45 guests)  


  Results 1 to 3 of 3

Related

  1. Scrolling problems    Forum: HTML Forum
    Replies: 1
  2. yet another scrolling table ?    Forum: HTML Forum
    Replies: 3
  3. Text scrolling...    Forum: HTML Forum
    Replies: 1
  4. scrolling text    Forum: HTML Forum
    Replies: 1
  5. scrolling text    Forum: HTML Forum
    Replies: 1
  1. #1
    CPUMAN0's Avatar
    New User

    Status
    Offline
    Join Date
    Sep 2001
    Location
    Whitewater, WI
    Posts
    4

    Cool Non-scrolling background

    I have seen web pages where the background image does not scroll with the rest of the contents of the page. Is this just another tag property that I don't know about, or is it more complicated?

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Hiya C, welcome to the forums!

    the answer is ...depends.

    there is a HTML tag for a non-scrolling background, but it has been depreciated in favour of Cascading Style Sheets.

    the CSS answer is to paste this into your <HEAD> (unless you already use CSS, so add this to your Style SHeet ...

    <style>
    <!--
    body {
    background-image: url(yourimage.jpg);
    background-attachment: fixed;
    }
    -->
    </style>

    This will achieve what you are after.

    have fun!"
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  3. #3
    CPUMAN0's Avatar
    New User

    Status
    Offline
    Join Date
    Sep 2001
    Location
    Whitewater, WI
    Posts
    4

    Cool Thanks

    Thanks Dean, that was exactly what I was looking for.



Tags for this Thread