Zendcasts Forum

A community of developers who work with the Zend Framework and other enterprise PHP technologies

You are not logged in.

#1 2010-07-15 09:31:15

ashinaidu
New member
Registered: 2010-07-13
Posts: 3

Display checkboxes in horizontal order

Hello All,

I have check boxes around 46. I want to arrange these check boxes 5 in a row i.e. first five checkbox should come and then next five should come below the first row and so on. Currently by default it shows each check boxes one below the other. Please let me know what option value i should pass while creating the multiple check boxes element.

Regards,
Ash

Offline

#2 2010-07-17 22:24:18

Jon Lebensold
Administrator
Registered: 2009-06-27
Posts: 279

Re: Display checkboxes in horizontal order

Hi ashinaidu,

you could do this with float: left on the checkboxes, assuming <label><input type="checkbox" />my label</label> where the <label> is float left or display: inline with a fixed with and it's in a containing block level element (like a div) that's the width of the 5 labels.

good luck!

Offline

Board footer

Powered by FluxBB