Results 1 to 3 of 3

Thread: PHP Photo Album (centered)

  1. #1
    Join Date
    Mar 2006
    Posts
    600
    Thanks
    5
    Thanked 4 Times in 4 Posts

    Default PHP Photo Album (centered)

    PHP Phot oAlbum

    Script URL (on DD)

    problem:
    I can't get the photo album to center. I have tried <center>content</center> and I have also tried <div align="center">content</div>

    Any clue?
    Last edited by ddadmin; 08-06-2006 at 04:37 AM.

  2. #2
    Join Date
    Sep 2005
    Posts
    882
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default

    in the css(step 2) there is a line that says "float: left;". You may need to remove that.

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

    Default

    That won't help too much though it is a good idea. It will allow centering but, it will also stack the images vertically. The way to center elements with as advanced styling as these isn't to use a container with align="center" or <center></center> tags. You do need a container though. Try:

    HTML Code:
    <div style="width:650px;margin:0 auto;">
    
    content
    
    </div>
    Where 650px is the width of however many images wide your gallery is plus their padding, margins, etc. (650px works well with the demo version of the script). This will require a DOCTYPE to work in IE.
    - 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
  •