Page 1 of 1

Radio button height

Posted: Tue Apr 28, 2015 11:55 am
by Joe Sharples

Image

how do I change the height of the radio buttons so they are all the same?

I already have the CSS asset below.

pre

.nightRadio .ui-controlgroup-controls {
width:100%;
}

.nightRadio .ui-radio {
width:33.33%;
}

.nightRadio label {
text-align:center !important;
}
/pre

.nightRadio is the radiobutton class name.

I've tried using
pre
.nightRadio {
height: 50px;
}
/pre
and
pre
.nightRadio .ui-controlgroup-controls {
height: 50px;
}
/pre
and
pre
.nightRadio .ui-radio {
height: 50px;
}
/pre

but this did not work


Radio button height

Posted: Tue Apr 28, 2015 11:57 am
by Joe Sharples

Resolved:

pre
.nightRadio .ui-btn {
height: 50px;
}
/pre


Radio button height

Posted: Tue Apr 28, 2015 12:00 pm
by Joe Sharples

Image

how would i align the text vertically?

I have tried:

pre
.nightRadio label {
text-align:center !important;
vertical-align: middle !important;
}
/pre

this didn't work


Radio button height

Posted: Wed Apr 29, 2015 5:34 am
by Serhii Kulibaba

Hello Joe,

Please follow this tutorial: https://css-tricks.com/centering-css-...


Radio button height

Posted: Wed Apr 29, 2015 10:38 am
by Joe Sharples

Thanks Sergiy

solved:

pre
.nightRadio label {
text-align:center !important;
display: flex;
justify-content: center;
flex-direction: column;
}
/pre