Results 1 to 6 of 6

Thread: How to repeat the background image?
      
   

  1. #1
    bradles is offline Corporal
    Join Date
    Apr 2009
    Posts
    19

    Default How to repeat the background image?

    Hi Guys,

    I have a background image at the top of my website that is 1800 pixels wide (blue to white gradient). How can I get this image to repeat over and over without having to include the full image? On smaller screens it makes a horizontal scrollbar appear at the bottom!

    My website is http://www.facebook-tutorials.com

    Cheers,

    Brad

  2. #2
    Join Date
    Feb 2006
    Location
    Earth
    Posts
    8,721

    Default Re: How to repeat the background image?

    Hi, delete the image you have.
    Now place a shape on your page & shade it as you want. The length is up to you, but make the width about 2px & place it in the top left corner out the way. Right click on the image & select html & you will see some code with the image's name, something like bv01119.gif. copy this image name into the code below & then select from the main menu View>Page HTML>Between head tag> & paste in this area. Preview

    <style type="text/css">
    <!--
    body {background-image: url(bv01119.gif); background-repeat:repeat-x;;background-position:left top;}
    -->
    </style>

    Also have a read of this to centre your pages

  3. #3
    bradles is offline Corporal
    Join Date
    Apr 2009
    Posts
    19

    Default Re: How to repeat the background image?

    Awesome, thanks heaps Chris!

    One more question: I am making up a new web page and everything is in correct alignment when I am inserting images. I then click 'preview in browser' and some of the images move to the right out of alignment???

    Very frustrating, any ideas?

    Cheers,

    Brad

  4. #4
    Alien Dude's Avatar
    Alien Dude is offline Lieutenant Colonel
    Join Date
    Apr 2008
    Location
    The Dark Side
    Posts
    562

    Default Re: How to repeat the background image?

    This can sometimes happen if you have a misconfigured script or two scripts that conflict with each other.

  5. #5
    bradles is offline Corporal
    Join Date
    Apr 2009
    Posts
    19

    Default Re: How to repeat the background image?

    Any ideas on how to fix this? I have simply created a basic new page and inserted about 6 images. There is a html box with a you tube video and a html box with an Aweber opt in form. The opt in form moves to the right off the main page and one of my banners also moves to the right?

    Thanks :)

  6. #6
    Join Date
    Feb 2006
    Location
    Earth
    Posts
    8,721

    Default Re: How to repeat the background image?

    As Alien suggested, its quite likely a conflict. Remove one of the scripts on the page & preview. If this is no good, then replace the last script & try removing another one to see if it solves it.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49