Results 1 to 2 of 2

Thread: Centering wide images...

  1. #1
    Join Date
    Apr 2009

    Centering wide images...

    I've run into a problem.

    I'm working on a site that has a large image that needs to be centered.

    The image, however, is intended to be wider than most browser windows and is designed to fade to black at the sides.

    The main problem is that left edge of the image bumps up to the left edge of the browser, throwing off this alignment when viewing through more narrow browser windows.

    Any suggestions would be greatly appreciated.


  2. #2
    Join Date
    Apr 2006
    how i would attempt to fix this is using css and nested div's

    the first div i would set it's background as the image you are talking about, and set the bg as centered

    then place a second div over the top of that image

    look at this site as an example
    Last edited by skilled1; 04-23-2009 at 11:37 AM.

Thread Information

Users Browsing this Thread

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

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
HTML5 Development Center