cakephp - How can I line up radio buttons horizontally rather than vertically? -


I'm trying to find a way to line horizontally instead of vertically for buttons . I 'div' = & gt; Seeing. 'Class_name' $ option also between $ option ['' '] , $ options [' separator '] and $ options [']] But what are the "cake" ways of doing so?

  & lt ;? = $ Form-> Input ('product type', array ('type' = & gt; 'radio', 'id' = & gt; $ tire ['product type'] ['id'], 'name' = & gt; $ tire ['Product type'] ['id'], 'option' => array (2 => tire maker ', 7 =>' rim manufacturers'),)) ;? & Gt;  

of equivalent

  & lt; Label & gt; Product type & lt; / Label & gt; & Lt; Div style = "padding-top: 5px;" & Gt; & Lt; Input type = "radio" name = "data [creator] [product_type_id]" value = "& lt;? = $ Tire ['productive type'] ['id']? Gt; gt; & gt; tire manufacturer & amp; Nbsp; & amp; nbsp; & lt; input type = "radio" name = "data [creator] [product_type_id]" value = "& lt ;? = $ Wheel ['ProductType'] ['id']? & Gt; & Gt; Rim maker & lt; / Div & gt; 

The easiest way to do this is to tag each radio button with 'LI' And then apply CSS styles to 'ul' which tells it to show the 'li' tag rather than looking horizontally vertically. You can find a lot of horizontal list designs.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -