X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Sub-categories images not lining up with 1 or 2 lines of text underneath (https://forum.x-cart.com/showthread.php?t=41688)

gb2world 12-27-2011 06:38 PM

Re: Sub-categories images not lining up with 1 or 2 lines of text underneath
 
Unless the original templates have been significantly modified, the original solution in post #4 by Balinor should work just fine.

Even in the most recent versions of x-cart, a table is used when a grid display is required for products. For a grid display, to keep all the heights of all the possible elements uniform would be much more difficult with a css only approach, unless fixed heights are defined.

---

modibaba 12-28-2011 03:48 AM

Re: Sub-categories images not lining up with 1 or 2 lines of text underneath
 
Quote:

Originally Posted by balinor
In order to keep the products all lined up, you need to keep the same heights for everything. To do that, you can use <div> tags with fixed height. So for the product name, you need to set the height to the maximum height needed for the longest product name you have (2 or 3 lines). Try different heights until you get it right.



Dear Balinor
Do you mind if you give us more help on what file we need to amend and what's the <div> formual we need to amend/use please.
Appreciate your assistance.


All times are GMT -8. The time now is 08:43 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.