Welcome to TalkGraphics.com
Results 1 to 5 of 5

Threaded View

  1. #3
    Join Date
    Mar 2009
    Location
    England
    Posts
    2,044

    Default Re: Snippet of code for centering a large background tile?

    Hi Ali

    Here are two methods I have used successfully.

    Method one is to use the following code in the head section of the page.

    Code:
    <style type="text/css">
    html {
    background-image: url("http://www.goldenarrow.me.uk/goldenarrow_htm_files/bgimage.jpg");
    background-repeat: no-repeat;
    background-position:center top;
    background-color: #ffffd4;
    }
    </style>
    The disadvantage with this method s that the background does not appear in the editor (it does in preview though)

    The second method involves chopping up the image. See attached.
    Attached Files Attached Files

 

 

Tags for this Thread

Bookmarks

Posting Permissions

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