Skip Navigation

[Resolved] How To Align Buttons To The Bottom of a Row

This thread is resolved. Here is a description of the problem and solution.

Problem:

Use CSS codes to setup buttons in grid cells in a horizontal line.

Solution:

It can be fixed with CSS codes, see details here:

https://toolset.com/forums/topic/how-to-align-buttons-to-the-bottom-of-a-row/#post-1142131

Relevant Documentation:

https://www.w3schools.com/cssref/pr_dim_min-height.asp

This support ticket is created 6 years 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 4 replies, has 2 voices.

Last updated by tohL 6 years ago.

Assisted by: Luo Yang.

Author
Posts
#1142034
4.png

How To Align Buttons To The Bottom of a Row?

Could you please show me the css.

Thank you.

#1142097

Hi,

I suggest you wrap those button into a HTML div tag with style "text-align: center;", for example:

<div style="text-align: center;">
	[wpv-filter-submit output="bootstrap"][wpv-filter-reset output="bootstrap"]
</div>

More help:
hidden link

#1142112

This is the Code I'm using at the "Templates for this View"

[types field='store-name'][/types]
<br>
[types field="address"][/types]
<br>
[types field="contact"][/types]
<br>
<div>
<button type="button" class="button1">GET DIRECTION</button>
</div>

I want to align the buttons to the bottom of a row.

Thank you.

#1142131

Thanks for the details, I suggest you change the codes as below:

<div style="min-height:180px">
[types field='store-name'][/types]
<br>
[types field="address"][/types]
<br>
[types field="contact"][/types]
</div>
<div>
<button type="button" class="button1"><a href=[types field='get-direction' output='raw'][/types]>GET DIRECTION</a></button>
</div>

And test again, more help:
hidden link

#1142566

Thank you Luo Yang. My issue is resolved now. Thank you!