Mike6580064
Posts: 0
Joined: Wed Jan 15, 2014 6:00 pm

Vertically-Align Button Component

I have a button within a grid cell and have applied the following CSS style on the button:

.button {
vertical-align: middle !important;
}

But the button is not vertically-aligned within the grid cell. What else do I need to do to vertically-align the button to the middle of the grid cell?

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Vertically-Align Button Component

Hello Mike,

Please look topic below:
https://getsatisfaction.com/apperyio/...

Mike6580064
Posts: 0
Joined: Wed Jan 15, 2014 6:00 pm

Vertically-Align Button Component

Sergiy,

There are a million comments in this thread. Which is the solution that I'm looking for?

Thanks

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Vertically-Align Button Component

Add custom CSS:

pre
[name=parentComponentName]{
display:table;
}

[name=componentName]{
display:table-cell;
vertical-align:middle;
}
/pre

it should work for any component where
parentComponentName and componentName - names of parent component and that component accordingly.

Mike6580064
Posts: 0
Joined: Wed Jan 15, 2014 6:00 pm

Vertically-Align Button Component

Thank you

Return to “Issues”