Results 1 to 3 of 3

Thread: CSS Smart Image Enlarger - how to center?

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

    Default CSS Smart Image Enlarger - how to center?

    1) Script Title: CSS Smart Image Enlarger

    2) Script URL (on DD): http://www.dynamicdrive.com/style/cs...mage_enlarger/

    3) Describe problem: I created a site with a small image gallery and used the css smart image enlarger to make the thumbs larger on mouseover. See the site here http://www.sherrywinslow.com/817/features.htm

    How can I center the gallery in the table? It currently is left aligned and looks bad.

    Thanks.

  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

    Put a container (highlighted) around the stuff in your td there and give it the width (red) of all five combined:

    Code:
    					<td style="padding: 10px" valign="top" colspan="2" bgcolor="#576132" align="center">
    <div style="width: 775px;">
    					
    					<div class="ienlarger"><a href="nogo">
    						<img src="images/livingentry.jpg" alt="Living and entrance" class="resize_thumb" width="500" height="354" /><span>
        <img src="images/ . . .
        
         . . . alt="large" width="500" height="354" /><br />
        Top floor deck</span></a></div>
    
      <div class="ienlarger"><a href="#nogo"><img src="images/loung_ch.jpg" alt="Top Floor Lounge" class="resize_thumb" width="500" height="354"/><span>
        <img src="images/loung_ch.jpg" alt="large" width="500" height="354" /><br />
        Top floor lounge</span></a></div>
    
    	<br style="clear:left" />
    </div>
    - John
    ________________________

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

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    sjwinslow (01-08-2011)

  4. #3
    Join Date
    Jan 2011
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Perfect! Exactly what I needed to happen. Thank you

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
  •