Keyword

Align Category Item Images

  • Chad Stephenson
  • Chad Stephenson's Avatar Topic Author
  • Offline
  • New Member
More
10 years 10 months ago #121012 by Chad Stephenson
Align Category Item Images was created by Chad Stephenson
My images for my items are in varying heights and I would like to keep them that way. I would like to have them all aligned by the bottom of the images. Any suggestions?

Here is a link to the page:http://coastald.com/leister/automatic-welders

Please Log in or Create an account to join the conversation.

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 10 months ago #121013 by Yiota
Replied by Yiota on topic Re: Align Category Item Images
You could add a min-height to your image container according to the image that has the larger height.
Add in your template's css file
.catItemImageBlock {min-height:YOUR_HEIGHT_IN_PIXELS;}

Please Log in or Create an account to join the conversation.

  • Chad Stephenson
  • Chad Stephenson's Avatar Topic Author
  • Offline
  • New Member
More
10 years 10 months ago #121014 by Chad Stephenson
Replied by Chad Stephenson on topic Re: Align Category Item Images
Great, that seems to work, but I would also like to align the bottom of the images.

Please Log in or Create an account to join the conversation.

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 10 months ago #121015 by Yiota
Replied by Yiota on topic Re: Align Category Item Images
One way would be the following:
Add a .catItemImageBlock {position:relative;}
and div.catItemHeader span.catItemImage img {position:absolute;bottom:0;left:75px;}

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum