Page 1 of 1

Re: Opencart - Align text on specials/featured

Posted: 06 Jan 2015, 21:01
by Justin
Could some kind member point me in the right direction please? On my home page, http://www.printshetland.com/ The text does not centre to the images for special/featured items. Just wondered if someone could tell me exactly where the line is that changes this save me searching?

Re: Opencart - Align text on specials/featured

Posted: 06 Jan 2015, 23:58
by daviddeer
you could look here

Re: Opencart - Align text on specials/featured

Posted: 07 Jan 2015, 10:00
by Skye
Try the theme's stylesheet.css file.

Looks like it's set using padding attribute on ".box-product .name" and ".box-product .price". Set padding options to 0px and see if it fixes it..................

Re: Opencart - Align text on specials/featured

Posted: 07 Jan 2015, 12:15
by WePrintForYou
stylesheet.css

you have extra padding in

.box-product .name {
/* padding-left: 40px; */
/* padding-right: 5px; */

user chrome and inspect element to debug on the fly

Re: Opencart - Align text on specials/featured

Posted: 07 Jan 2015, 13:12
by spongerobinson
Exactly as WePrintForYou says

Change padding-left to 0px, and padding-right to 0px.

Also, to centre the price, change

.box-product .price {padding-left:58px;}

to padding-left:0px;

Should end up with the below.

vB_ID:3174
vB_ID:3174
Screen Shot 2015-01-07 at 13.13.43.jpg (20.97 KiB) Viewed 4 times

Re: Opencart - Align text on specials/featured

Posted: 07 Jan 2015, 16:00
by Justin
Said if before, you guys are the best! Just what I needed, straight to the right section, changed, job done. Save me a fair bit of time, many thanks! :-)

Re: Opencart - Align text on specials/featured

Posted: 07 Jan 2015, 16:25
by WePrintForYou
I'm not sure what theme you are using but most themes have a custom CSS option where you can input CSS code that soft codes it into your website instead of hard coding like this.

Re: Opencart - Align text on specials/featured

Posted: 07 Jan 2015, 16:34
by Justin

Re: Opencart - Align text on specials/featured

Posted: 07 Jan 2015, 21:41
by WePrintForYou
This is a plugin, 3 of the themes I use for different sites have their own control panel with a section like this in.

It does not make any difference just easier for testing.

Re: Opencart - Align text on specials/featured

Posted: 07 Jan 2015, 22:06
by Justin
Aha, I understand, I'll look into that further, not something I've seen i don't think....other than VQMod etc. Many thanks :-)