Results 1 to 2 of 2

Thread: Image Positioning

  1. #1
    Join Date
    Apr 2009
    Posts
    2

    Image Positioning

    I am using CSS. I have an image positioned at center top, and i would like to know how to position an image in the top right corner w/o altering the center top image.

    Your help, appreciated.

  2. #2
    Join Date
    Feb 2006
    Location
    Salisbury UK
    Posts
    4,332
    Place the first image as a background-image on the body with this style:-

    body { background-image: url(image.jpg); background-position: top center; }

    and the other image as a background-image for a wrapper div:-

    #wrapper { width: 100%; background-image: url(image2.jpg); background-position: top right; }

    http://www.w3schools.com/css/pr_background-position.asp

    <body>
    <div id="wrapper>
    All your content here
    </div>
    </body>
    Code downloaded to my PC will be deleted in due course.
    WIN7; IE9, Firefox, Opera, Chrome and Safari for Windows; screen resolution usually 1366*768.
    Also IE6 on W98 with 800*600 and IE8 on Vista 1440*900.

Similar Threads

  1. Help With Image Map With Rollovers and More
    By porphyrins in forum General Questions
    Replies: 1
    Last Post: 03 Dec 2008, 02:57 AM

Tags for this Thread

Posting Permissions

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