Opencart - Align text on specials/featured
- Justin
- Site Admin
- Posts: 12090
- Joined: 23 Jan 2026, 13:12
- Location: Derbyshire
- Has thanked: 11 times
- Been thanked: 9 times
- Contact:
Re: Opencart - Align text on specials/featured
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
you could look here
The real secret is to wisdom is to listen to the wise and follow their advice
Re: Opencart - Align text on specials/featured
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..................
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..................
- WePrintForYou
- Posts: 84
- Joined: 17 Jul 2013, 08:57
- Contact:
Re: Opencart - Align text on specials/featured
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
you have extra padding in
.box-product .name {
/* padding-left: 40px; */
/* padding-right: 5px; */
user chrome and inspect element to debug on the fly
Large Format, Sublimation, Direct To Garment Wholesale Manufacturer. No Minimums
-
spongerobinson
- Posts: 470
- Joined: 21 Feb 2013, 22:32
- Contact:
Re: Opencart - Align text on specials/featured
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.
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.
- Justin
- Site Admin
- Posts: 12090
- Joined: 23 Jan 2026, 13:12
- Location: Derbyshire
- Has thanked: 11 times
- Been thanked: 9 times
- Contact:
Re: Opencart - Align text on specials/featured
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! 
- WePrintForYou
- Posts: 84
- Joined: 17 Jul 2013, 08:57
- Contact:
Re: Opencart - Align text on specials/featured
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.
Large Format, Sublimation, Direct To Garment Wholesale Manufacturer. No Minimums
- WePrintForYou
- Posts: 84
- Joined: 17 Jul 2013, 08:57
- Contact:
Re: Opencart - Align text on specials/featured
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.
It does not make any difference just easier for testing.
Large Format, Sublimation, Direct To Garment Wholesale Manufacturer. No Minimums
- Justin
- Site Admin
- Posts: 12090
- Joined: 23 Jan 2026, 13:12
- Location: Derbyshire
- Has thanked: 11 times
- Been thanked: 9 times
- Contact:
Re: Opencart - Align text on specials/featured
Aha, I understand, I'll look into that further, not something I've seen i don't think....other than VQMod etc. Many thanks 
Who is online
Users browsing this forum: No registered users and 1 guest
