need to display radio as horizontal
This is the code, function reservation_form(){ $form['option_city'] = array( '#type' => 'radios', '#title' => t('City'), '#description' => t('Select a method for deleting annotations.'), '#options' => array( t('City'), t('Address'), ), '#default_value' => variable_get('option_city', 0) // default to Never ); return $form; } display the radio button as vertically, But i want to display horizontally what i do -- உங்கள் நண்பன் பரணி குமார் Regards B.S.Bharanikumar POST YOUR OPINION http://bharanikumariyer.hyperphp.com/
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; }
When i select the city radio option , need to display the cityForm When i select the address radio option , need to display the addressForm any guess On Tue, Nov 4, 2008 at 1:38 AM, Jim Tittsler <jwt@onjapan.net> wrote:
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; } -- [ Drupal support list | http://lists.drupal.org/ ]
-- உங்கள் நண்பன் பரணி குமார் Regards B.S.Bharanikumar POST YOUR OPINION http://bharanikumariyer.hyperphp.com/
participants (2)
-
bharani kumar -
Jim Tittsler