Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Is this CSS or JavaScript

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #25954

    If you go here http://www.tvguide.com/news you would see that the BG stays and the only thing scrolling is the content. can some tell me how this is done please.

    Regards :)

    #64021

    its CSS.

    Code:
    background-attachment: fixed;

    add that rule to your body :)

    #64029

    How would I place the div Body content in the center of the image?

    Regards

    #64030

    By the way greg.mcausland thanks for your help before it works!… :D

    #64037
    "3dtoon" wrote:
    By the way greg.mcausland thanks for your help before it works!… :D

    Welcome !

    to center your main content div, all you have to do is give the right-left margins the auto attribute.

    you can write it short hand like so

    Code:
    #container { margin: 0 auto; width: 960px; }

    note, i also added a width value, being the only other pre-requisite for this to work.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘CSS’ is closed to new topics and replies.