ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Customizing ProductCart
  New Posts New Posts RSS Feed - Center Image on Home Page - Help :-(
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Center Image on Home Page - Help :-(

 Post Reply Post Reply
Author
Message
Thadosha View Drop Down
Newbie
Newbie


Joined: 01-June-2011
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote Thadosha Quote  Post ReplyReply Direct Link To This Post Topic: Center Image on Home Page - Help :-(
    Posted: 01-June-2011 at 12:30am
Hi,
 
I am trying to center the images on my main page. if you look at the test product under "Featured Items", it seems to be Baselined.
 
How can I fix this and in what file is the fix in. I checked pcStoreFront.css but did not know where to go to fix this issue.
 
Any help would be greatly appreciated.
 
 
Thank you!!!
 
P.S. I am using ProductCart V3.51
Back to Top
Greg Dinger View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers
Avatar

Joined: 23-September-2006
Location: United States
Status: Offline
Points: 238
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greg Dinger Quote  Post ReplyReply Direct Link To This Post Posted: 01-June-2011 at 12:36am
<td class="pcShowProductImageH">
 
this should be your first clue.  Mess with that class in pcStoreFront.css
Back to Top
Thadosha View Drop Down
Newbie
Newbie


Joined: 01-June-2011
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote Thadosha Quote  Post ReplyReply Direct Link To This Post Posted: 01-June-2011 at 12:59am
Thank you for your response. I did check thios area. It is already set to TOP.
 
/* pcShowProductsH handles the table that shows product info
    when products are displayed horizontally */
  
  .pcShowProductsH {
   width: 125px;
   height: 225px;
   text-align: center;
   margin-left: auto;
   margin-right: auto;
  }
  
  .pcShowProductImageH {
   height: 125px;
   vertical-align: top;
   text-align: center;
   padding-bottom: 3px;
  }
  
  #pcMain .pcShowProductImageH img {
   border: 1px solid #E1E1E1;
   padding: 5px;
  }
  
  #pcMain .pcShowCategoryImage img {
   border: 1px solid #E1E1E1;
   padding: 5px;
  }
  
  .pcShowProductInfoH {
   height: 100px;
   margin-top: 5px;
   vertical-align: top;
  }
  
  .pcShowProductInfoH p {
   text-align: center;
  }
  
Back to Top
Greg Dinger View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers
Avatar

Joined: 23-September-2006
Location: United States
Status: Offline
Points: 238
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greg Dinger Quote  Post ReplyReply Direct Link To This Post Posted: 01-June-2011 at 1:07am
How about describing again what you are trying to do.  Your post is not clear to me.
Back to Top
Thadosha View Drop Down
Newbie
Newbie


Joined: 01-June-2011
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote Thadosha Quote  Post ReplyReply Direct Link To This Post Posted: 01-June-2011 at 1:13am
The extra space above the Featured items test product, I am trying to even it off so the top is the same as the bottom. Right now the way you see it, the test product is baselined for some strange reason. I am trying move the item up to get rid of the white space above it.
 
Thank you very much for your help...
 
 
Thadosha
Back to Top
Hamish View Drop Down
Admin Group
Admin Group


Joined: 12-October-2006
Location: United Kingdom
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hamish Quote  Post ReplyReply Direct Link To This Post Posted: 01-June-2011 at 1:06pm
I just looked & pcShowProductImageH is set to bottom. Change it to centre & all wil be peachy :-)  
Back to Top
Greg Dinger View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers
Avatar

Joined: 23-September-2006
Location: United States
Status: Offline
Points: 238
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greg Dinger Quote  Post ReplyReply Direct Link To This Post Posted: 01-June-2011 at 1:13pm
but be sure not to pay attention to his funny spelling.  HTML don't speak Brit.
Back to Top
Hamish View Drop Down
Admin Group
Admin Group


Joined: 12-October-2006
Location: United Kingdom
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hamish Quote  Post ReplyReply Direct Link To This Post Posted: 01-June-2011 at 2:35pm
Good point Greg :-D 
Back to Top
Thadosha View Drop Down
Newbie
Newbie


Joined: 01-June-2011
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote Thadosha Quote  Post ReplyReply Direct Link To This Post Posted: 02-June-2011 at 8:32am
Hi Everyone,
 
I want to thank all that helped me with the image problem. The only thing wrong now is the text under it. Why does productcart make two code snips for one product?
 
Now if you look under the image, the text is still baselined. When I changed the "bottom" to "center", in a programmers world, it should have moved everything, not just the image.
 
Does anyone know how I can get the text under the image to move up under the image like it was before? I do not know why the text did not move up along with the product except for the fact it was not coded that way.
 
Any help with this, hopefully last issue, would greatly appreciated.
 
Thank you again!!
 
Thadosha
Back to Top
Hamish View Drop Down
Admin Group
Admin Group


Joined: 12-October-2006
Location: United Kingdom
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hamish Quote  Post ReplyReply Direct Link To This Post Posted: 02-June-2011 at 9:49am
Hi Thadosha,  If the text moves up it would be base-lined again :-)
The image is in its own row with class="pcShowProductImageH 

From the CSS :
 .pcShowProductImageH
  {
  height: 125px;
  text-align: center;
  padding-bottom: 3px;
  }

On other pages where there are multiple products per row if a height was not set for the space for images the laout would end up looking terrible (or if you use images larger than the specified size). 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.063 seconds.