Results 1 to 2 of 2

Thread: Quick Questions, help is appreciated thanks

  1. #1
    Join Date
    Jan 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Quick Questions, help is appreciated thanks

    I have a question... know how to put a image as a background for my webpage, but it just keeps repeating the image... the image is about half the size of the page, but i want it to be only shown once not to repeat, how do i do that.

    and what type of position html should i use to position images whenever i want them on my page to coordinate with the background and still line up for all resolutions?

    any help i would appreciate

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    "Still line up for all resolutions" cannot be done with background and foreground images unless both are absolutely positioned. However, if you do that, they will appear out of line with other content on the page unless all of it is also absolutely positioned, a very bad idea. You need to learn to let go and let the page do what it will. Design with that kind of freedom in mind and you can have some very nice pages. To prevent a background image from tiling, set it and its attachment using style (here is the shorthand method):

    Code:
    <style type="text/css">
    body {
    background:url('some.jpg') no-repeat;
    }
    </style>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •