Page 1 of 1
White space between price and add to cart button
Posted: Sun Apr 09, 2017 7:40 pm
by michellemaree
Is there anyway to remove or reduce the amount of white space between the price and the add to cart button on list/grid view as well as on the featured products on the home page?
My client is running a product catalogue with an extension that removes prices for any products with a zero pricing so it makes the white space even more dramatic.
You can see the white space on the original basic demo site.
Thanks
Re: White space between price and add to cart button
Posted: Mon Apr 10, 2017 6:16 pm
by viethemes
Could you provide your site URL and take a screenshot this problem so we can take a look at it closer?
Re: White space between price and add to cart button
Posted: Sun Jun 11, 2017 9:00 pm
by michellemaree2
I had to create a new account as I couldn't reply. Attached is a screenshot of the white space I was talking about. Would love to know if there is a way to minimize it. Haven't found a solution yet.

Re: White space between price and add to cart button
Posted: Sun Jun 11, 2017 10:21 pm
by sarthakinfotech
hi
here for default theme to set the height of the box you may open the stylesheet.css file and goto line 571 and may change min-height property to set the size of the box as per your need. I am also attaching the screen shot from my desktop to explain it better.
![Image]()
Re: White space between price and add to cart button
Posted: Mon Jun 12, 2017 5:44 am
by michellemaree2
Ah thankyou so much! That worked a treat. Much appreciated!
Re: White space between price and add to cart button
Posted: Thu Jul 13, 2017 10:55 pm
by mohamed.megahed
sarthakinfotech wrote: ↑Sun Jun 11, 2017 10:21 pm
hi
here for default theme to set the height of the box you may open the stylesheet.css file and goto line 571 and may change min-height property to set the size of the box as per your need. I am also attaching the screen shot from my desktop to explain it better.
i tried but nothing changed i dont know which file to edit in step 2 version 2.3.0.2
Re: White space between price and add to cart button
Posted: Fri Aug 05, 2022 4:44 pm
by Gobbo
Hi,
We're trying to redcue the space on line 571 on the CSS, we update the CSS and nothing happens.
Anyone know the problem?
Hate clearing the browser cache
Thanks in adanvce,
Gobbo
Re: White space between price and add to cart button
Posted: Wed Feb 01, 2023 6:34 pm
by Gobbo
Hi,
Where in the CSS is the Add To Cart button margin?
As we need to move to closer to the price and futher away from the bottom product, please see image.
Thanks in advance
Re: White space between price and add to cart button
Posted: Wed Feb 01, 2023 6:50 pm
by Gobbo
It was on line 561 and it worked.
But how do we increase the gap bettween the Add to Cart button and the picture of the product below?
Re: White space between price and add to cart button
Posted: Wed Feb 01, 2023 9:30 pm
by Gobbo
The gap was incresed by changing:
/* product list */
.product-thumb {
border: 0px solid #ddd;
margin-bottom: 0px;
overflow: auto;
To:
/* product list */
.product-thumb {
border: 0px solid #ddd;
margin-bottom: 50px;
overflow: auto;
Re: White space between price and add to cart button
Posted: Sun Nov 26, 2023 3:38 pm
by kamini04
sarthakinfotech wrote: ↑Sun Jun 11, 2017 10:21 pm
hi
here for default theme to set the height of the box you may open the stylesheet.css file and goto line 571 and may change min-height property to set the size of the box as per your need. I am also attaching the screen shot from my desktop to explain it better.
gb whatsapp pro
Where can I find the stylesheet.css file to set the height of the box? I would be very happy if you could let me know, thanks
Re: White space between price and add to cart button
Posted: Sun Nov 26, 2023 6:16 pm
by IP_CAM
Well, better read here on what it takes to eventually get a useful reply around here. But if you don't even know where the stylesheet.css file is located, you won't have much chances to get anywhere with Opencart.
No offense, good luck!
viewtopic.php?t=200480