Get all the buttons to line up

I Am attempting to make a grid layout of sorts, 5 across, image, text, and a button.
I can get everything to line up using different rows
https://www.dropbox.com/s/h907q766xkl4ewc/New_Human_Hub__New_Human_15.11.19_1552.png
but then when the page gets smaller, ie mobile etc…, the buttons stack up together underneath.

Or if they are all in one column with the CTA module or similar and screen gets smaller it looks like junk and the button are still not lined up.
https://www.dropbox.com/s/pfi2zn3w6gse2ox/New_Human_Hub__New_Human_15.11.19_1554.png?dl=0

not too sure where to go from here

Hey Joda,

That would be caused by how the space for each column is already small, and it just gets smaller as the viewport does. As you notice on your second screenshot, the body texts are going over 4 lines instead of 2, headings going 2 lines instead of 1, button text going over 3 lines instead of 1, that is what breaks the layout.

Try using wider columns, maybe do 2 rows, 1 3 column and the other a 2 column row so your content have enough space.

Ben

OK I get that point, is there an easy way to keep the buttons in a line without having to add lines in the text area? witch is not very precise.
whole page: https://www.dropbox.com/s/hfrr7rn8cpusmh0/NH%20Hub%20whole.png?dl=0
I tried putting them all in a row, but that didn’t go so well on mobile.
http://take.ms/7PSCP

thoughts?

Hey Joda,

Are you using the Callout module? Or are those separate modules each? Or would it be possible for you to share the URL of the site so we may take a look?

Ben

[Content Hidden]

Hey Joda,

Should be possible with custom CSS. I’d suggest using Callouts instead, as it would be easier to style. You can simply add a class to the row where you want the buttons to align, e.g., align-ctas, then use the CSS snippet below.

.align-ctas .fl-callout-button {
  position: absolute;
  bottom: 0px;
} 

Then play around with the padding/margin of the row to fix spacing issues. :slight_smile:

Ben

Awesome, just need to center with in the column.

Hey Joda,

This is the only way that I know of to achieve that. You’re gonna need to assign the class to the row this time, and not the module. And play around with the columns bottom padding/margin, instead of the row. :slight_smile:

@media (min-width: 768px) {
  .align-ctas .fl-col {
    position: relative;
  }
  .align-ctas .fl-callout-button {
    position: absolute;
    bottom: 0px;
    width: 200px; /* Change to whatever width you like for your buttons */
    left: 50%;
    margin-left: -100px; /* Must be 50% of the width you set above */
  }
}

Edit: I’ve placed it inside a media query so it doesn’t apply to mobile.

Ben

Hi Ben,

I’ve attempted to do this, and having some success.
The only problem I have though is that the buttons are covering some of the content above them.
Any thoughts?
See example here:

http://irwinhunter.com.au/
(a row of two columns and a row of three columns both examples)

TIA, Dave

ps, I have made a ‘sort of’ solution by adding a no-breaking space inside a paragraph on the longest column (in each example) so the button is pushed down.

Hey Dave,

Try adding the snippet below inside the media query above and see if it helps.

.align-ctas .fl-callout-text {
  margin-bottom: 30px;
}

Feel free to adjust the value.

Ben