Posted: July 17, 2015 at 9:40 am
|
I customized the grid-view template to display the text below the event image, and to change the size of the image thumbnails. Everything looks great, except for one item that seems to throw off the alignment. It has an event title that is 3 lines long. Most other event titles are 2 lines long, however there are a few others that are 3 lines long and don’t seem to have this problem. The only thing unique about this row would be that the item in the first column has an event title 3 lines long, while the other events in the row have titles only 2 lines long. If I shorten the title of this one problem event, it fixes the issue. However, as the events change when new ones are displayed the problem will still exist. How can I fix this? Here is the css I used: .ee_grid_box a.darken { .ee_grid_box a.darken span { .ee_grid_box a.darken:hover span { .ee_grid_box img { |
Hi, for any styling questions, we’ll need to see a link to your site. Thanks — |
|
|
Thanks, Lorenzeo. I hadn’t published the page yet, but just did so you can see it. This is the one I’m having the issue with: redacted – Event Espresso support team – LOC |
Hi Deborah, You should be able to fix this using: .ee_grid_box { display: inline-block; vertical-align: top; } .ee_grid_box a { margin: 10%; } Which forces the container divs for each item to display as inline-block and then aligns them vertically from the top. With the above fix regardless of how long the event title is the next line should display fine, like so – http://take.ms/iSpmM If you add the above to your CSS does it work as expected? |
|
|
Thanks, Tony. That resolves the vertical spacing, but now I need to modify things so they still fit 3 columns across on my page. I think I can fix it from here. Thanks for your help! |
That’s caused by the fixed margins on ‘.ee_grid_box a’. (10px) Try reducing this: .ee_grid_box a { margin: 10%; } down to 5%, 10% displays correctly on my end. |
|
|
I appreciate your help, Tony. The page was loading fine in Safari — displaying 3 columns — but still only showing 2 columns in Firefox. I decreased the margin to 3% and now it looks great. Thanks again! |
The support post ‘Issue with alignment in Grid View Add-On’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.