Fixed height product box on category page - help

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Fri May 30, 2014 4:32 pm
Reply with quote
Report this post
Hi

Can anyone tell me how to fix the height of the product boxes on the category page? I have some product titles running onto 3 lines causing the box to be deeper than the products with 2 lines.

See here http://5.77.47.2/~atosacat/index.php/fr ... r-counters

Any help would be appreciated.

Thanks.
User avatar
Junior Boarder

teitbite
Sat May 31, 2014 10:12 am
Reply with quote
Report this post
Hi

Please add this to css:

Code: Select all
h3.catProductTitle {
    min-height: 60px;
}


This will set same height for headers but still You will need to replace images to have same height.
User avatar
Moderator

GK User
Mon Jun 02, 2014 2:30 pm
Reply with quote
Report this post
Thanks for your help, this works great.

Also is it possible to add some sort of fixed height to the images on categories?

The images are fine if they are tall and narrow such as here, http://5.77.47.2/~atosacat/index.php/fr ... ge-freezer

But where the width fills the box, the height then relates to this, http://5.77.47.2/~atosacat/index.php/fo ... a-counters Is it possible to add a min or max height here to line everything up?

Thanks.
User avatar
Junior Boarder

teitbite
Wed Jun 04, 2014 10:08 am
Reply with quote
Report this post
Hi

Not an easy one, but please try if this will work:

Code: Select all
.product .spacer > div:first-child a {
display: block;
min-height: 200px;
}


I'm guessing and the height value is most likely wrong, so You may need to adjust it a little bit.
User avatar
Moderator

GK User
Wed Jun 04, 2014 3:00 pm
Reply with quote
Report this post
OK thanks for your help I will try this shortly.
User avatar
Junior Boarder

teitbite
Thu Jun 05, 2014 10:36 am
Reply with quote
Report this post
Hi

Ok. Just please do not forget to confirm if it worked. I bet someone else will be looking for a similar answer.
User avatar
Moderator

GK User
Sat Jun 14, 2014 12:05 pm
Reply with quote
Report this post
I've not tried this yet but will soon and let you know if it works. just had to take a break from the project but back on it now.
User avatar
Junior Boarder

GK User
Wed Jul 02, 2014 12:58 pm
Reply with quote
Report this post
Hi

Finally got round to trying this. Can you tell me where this code goes?

.product .spacer > div:first-child a {
display: block;
min-height: 200px;
}

I can't find a css file that already has this so where does it go?

Cheers
User avatar
Junior Boarder

teitbite
Thu Jul 03, 2014 11:33 am
Reply with quote
Report this post
Hi

Any css modifications should go to override.css file, just remember to allow using override in template settings.
User avatar
Moderator

GK User
Thu Jul 03, 2014 1:09 pm
Reply with quote
Report this post
Hi

I've been doing lots of changes to the other css files anyway so there's no point using the override one now. I keep a copy of your original code but any other changes you've suggested have been made to jooml.css and template.css for example.

Can you tell me which file to add this code?

I can easily change the size of the image using css but not the bounding box. I need to go live with this very soon so would appreciate your help.

Did you also see my message about the top sub menus and the z-index?

Cheers
Bob
User avatar
Junior Boarder

teitbite
Fri Jul 04, 2014 10:46 am
Reply with quote
Report this post
Hi

I've just checked, but there is no such selector mentioned in any file, but since it's VM related than I think it would be a good idea to add this to vm.css file.
User avatar
Moderator

GK User
Fri Jul 04, 2014 11:02 am
Reply with quote
Report this post
You are a star! That works perfectly, added that code to the end of the vm.css file and that's all it needs.

Thank you for your help.
User avatar
Junior Boarder


cron