Link to home
Start Free TrialLog in
Avatar of Larry Vollmer
Larry Vollmer

asked on

CSS question

I have this page:
http://tinyurl.com/4e99682

There are three thumbnails under the main image. I am trying to center those thumbnails.

When I remove this code from the css:
div.category_view_product a img.product_image{
  float: left;
  margin-right: 6px;
  }


and replace it with margin:0 auto; the images do not center.

I don't want to manually pad the images because sometimes there will be more then three images. Any idea how to fix this?
SOLUTION
Avatar of darren-w-
darren-w-
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Larry Vollmer
Larry Vollmer

ASKER

that didn't seem to work. Here is what I did:

  .wpcart_gallery {
margin: 0 auto;  }

div.wpcart_gallery img{
      
      margin-top:3px;
      margin-left:3px;
      margin-right:3px;
      margin-bottom:3px;
      border:1px solid #9A9CCD;
}
 




<div style="background-color:#EEE8E0; border:1px solid #D5D3D0; padding:5px;">
		<div class='wpcart_gallery'><a href='http://s111576.gridserver.com/wp-content/uploads/wpsc/product_images/01.Tank.Front.Nude.0009.jpg' rel='enlargeimage' rev='targetdiv:loadarea' rel="wp-prettyPhoto[g142]"><img src='index.php?image_id=152&amp;width=300&amp;height=300' alt='' title='' width='69' height='69' /></a><a href='http://s111576.gridserver.com/wp-content/uploads/wpsc/product_images/02.Tank.Back.Nude.0052.jpg' rel='enlargeimage' rev='targetdiv:loadarea' rel="wp-prettyPhoto[g142]"><img src='index.php?image_id=153&amp;width=300&amp;height=300' alt='' title='' width='69' height='69' /></a><a href='http://s111576.gridserver.com/wp-content/uploads/wpsc/product_images/03.Tank.Side.Nude.0018.jpg' rel='enlargeimage' rev='targetdiv:loadarea' rel="wp-prettyPhoto[g142]"><img src='index.php?image_id=154&amp;width=300&amp;height=300' alt='' title='' width='69' height='69' /></a></div>		</div>

Open in new window

ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks to both