Skip Navigation

[Resolved] Aligning Images on cells

This support ticket is created 6 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 5 replies, has 2 voices.

Last updated by Luo Yang 6 years, 6 months ago.

Assisted by: Luo Yang.

Author
Posts
#688515
G.jpg
Images.jpg

Tell us what you are trying to do?
I built a layout, the second rows has 4 grids of 1 column by 2 rows each,
Top row is an image cell
Second row is an accordion.
Everything is perfect only that when viewing from the front end, they appear slimly un-aligned...
Please see attached.

Is there any documentation that you are following?
None.

Is there a similar example that we can see?
Please see images attached.

What is the link to your site?
hidden link

#690202

Hello,

I assume you are going to display the "accordion" in a same row.

If it is, I suggest you try this:
1) Insert a grid cell with two rows and 4 column,
2) in the first row, each cell displays a image
2) in the second row, each cell displays a accordion cell.
Then all accordion cells will display in the same row.

More help:
https://toolset.com/documentation/user-guides/learn-creating-using-grids/
Grid of Cells

#699691

Thank you for the simply fix Luo,
Yes, indeed the alignment issue is solved, now there is another problem..

On a small screen, the order of the cells is wrong..

BEFORE IS WAS:
1- Image A
2- Accordion A
3- Image B
4- Accordion B
5- Image C
6- Accordion C
7- Image D
8- Accordion D
which was GOOD..

NOW IT IS:
1- Image A
2- Image B
3- Image C
4- Image D
5- Accordion A
6- Accordion B
7- Accordion C
8- Accordion D

which is BAD..

Can this be corrected?

#712658

OK, you can switch back to your original solution:
https://toolset.com/forums/topic/aligning-images-on-cells/#post-688515

And setup the image cell with same fix height, it should be able to avoid the problem you mentioned above.

More help:
hidden link

#712694

Ok, I reverted to the previous layout and the order is now correct...

What "fix height" would you recommend for the cells?
The challenge is to make it look good on both big screens and Mobile Devices.

#712787

Please have a look at the document I mentioned above:
hidden link

You can setup a fix height for HTML element with CSS codes, like this:

div.thumbnail{
height: 300px;
}