[support] need to display radio as horizontal
Jim Tittsler
jwt at onjapan.net
Mon Nov 3 20:08:46 UTC 2008
On Nov 3, 2008, at 20:49, bharani kumar wrote:
> This is the code,
>
> function reservation_form(){
>
> $form['option_city'] = array(
> '#type' => 'radios',
> [...]
> display the radio button as vertically,
>
> But i want to display horizontally
You can use CSS to make them display horizontally:
.form-radios .form-item {
float: left;
width: 20%;
}
.form-item label.option {
display: inline;
clear: left;
float: left;
}
More information about the support
mailing list