Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Image Thumbnails Center?

    Anyone know how I can centre an the image gallery as seen on this page ?

    http://css.maxdesign.com.au/floatuto...torial0407.htm

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Add up the widths of the images, plus the padding and/or margins then put them in a div equal to that width and use css to set that div to margin:auto; In that example each image plus margin and padding is 100px so times 3 thats 300px so if you put them in a 300px div and used margin:auto; it should work like you intend it to.
    Last edited by _Aerospace_Eng_; 06-03-2005 at 06:44 PM.

  • #3
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks yea was thinking of doing that but thought there could be an easier way, anyhow it works!


  •  

    Posting Permissions

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