Non-scrolling background.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • HeLLRZR
    Member
    • Feb 2011
    • 98

    [Forum] Non-scrolling background.

    Hello all,


    I would like to put a fix image as my website background, such as a winter scene. However I don't want the image to scroll.


    I would like the image to stay fixed in the background, how can I achieve this?


    Thanks for the help...
  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 74132

    #2
    Add background-attachment:fixed; to the proper class in your addiitonal.css file.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment

    • VbulletinItalia.
      Senior Member
      • Dec 2005
      • 131
      • 4.1.x

      #3
      Add to the CSS

      HTML Code:
      <head><style>body{background-repeat: no-repeat;background-attachment: fixed;background-position: bottom right;}</style></head><body background="you-imagesbackground.gif">

      Comment

      • HeLLRZR
        Member
        • Feb 2011
        • 98

        #4
        thanks guys! much appreciated.

        Comment

        • VbulletinItalia.
          Senior Member
          • Dec 2005
          • 131
          • 4.1.x

          #5
          You can also use this:

          <style>
          body{background-image:URL(images-background.gif);background-attachment:fixed; }
          </style>



          Comment

          • samiro
            Senior Member
            • Mar 2006
            • 333
            • 4.0.0

            #6
            i want to add a full background to the doc_background
            and i want to use...

            background-position: center top;

            and there is no way to control it via offset becouse the resolothion it differen in every screen

            please help
            i try to add "background-position:{center top};"
            in the vbulletin.css file
            but it don't affect anything
            My Women's Forums:

            Comment

            • Wayne Luke
              vBulletin Technical Support Lead
              • Aug 2000
              • 74132

              #7
              Edit the doc_background stylevar and put center for the horizontal offset and top for the vertical offset. Leave the units blank.
              Translations provided by Google.

              Wayne Luke
              The Rabid Badger - a vBulletin Cloud demonstration site.
              vBulletin 5 API

              Comment

              Related Topics

              Collapse

              Working...