![]() |
Center Image on Home Page - Help :-( |
Post Reply ![]() |
Author | |
Thadosha ![]() Newbie ![]() Joined: 01-June-2011 Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() 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
|
|
![]() |
|
Greg Dinger ![]() Certified ProductCart Developers ![]() ![]() Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
![]() ![]() ![]() ![]() ![]() |
<td class="pcShowProductImageH">
this should be your first clue. Mess with that class in pcStoreFront.css
|
|
![]() |
|
Thadosha ![]() Newbie ![]() Joined: 01-June-2011 Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
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; } |
|
![]() |
|
Greg Dinger ![]() Certified ProductCart Developers ![]() ![]() Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
![]() ![]() ![]() ![]() ![]() |
How about describing again what you are trying to do. Your post is not clear to me.
|
|
![]() |
|
Thadosha ![]() Newbie ![]() Joined: 01-June-2011 Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
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
|
|
![]() |
|
Hamish ![]() Admin Group ![]() Joined: 12-October-2006 Location: United Kingdom Status: Offline Points: 56 |
![]() ![]() ![]() ![]() ![]() |
I just looked & pcShowProductImageH is set to bottom. Change it to centre & all wil be peachy :-)
|
|
![]() |
|
Greg Dinger ![]() Certified ProductCart Developers ![]() ![]() Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
![]() ![]() ![]() ![]() ![]() |
but be sure not to pay attention to his funny spelling. HTML don't speak Brit.
|
|
![]() |
|
Hamish ![]() Admin Group ![]() Joined: 12-October-2006 Location: United Kingdom Status: Offline Points: 56 |
![]() ![]() ![]() ![]() ![]() |
Good point Greg :-D
|
|
![]() |
|
Thadosha ![]() Newbie ![]() Joined: 01-June-2011 Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
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
|
|
![]() |
|
Hamish ![]() Admin Group ![]() Joined: 12-October-2006 Location: United Kingdom Status: Offline Points: 56 |
![]() ![]() ![]() ![]() ![]() |
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). |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |