Thursday, November 25, 2010

Re: Manually make multiple checkbox?

On Thu, Nov 25, 2010 at 9:26 AM, Dave Maharaj <me@davemaharaj.com> wrote:
> Right but all that does is give me 1 cleaned row with 3 going across with a
> clear after the fieldset. I need each 3 to be 1 div
> <div class="my_class"> checkbox 1, 2, and 3 </div>
> <div class="my_class"> checkbox 4, 5, and 6 </div>
> <div class="my_class"> checkbox 7, 8, and 9 </div>
> <div class="my_class"> checkbox 10, empty, empty </div>

That's what the width is for. Set that to aprox. 1/3 the width. Or, if
the container is too wide, wrap everything in another div and set a
total width on that, then apply a width to .checkbox 1/3 of that.

> The checkbox count is not static so that's why foreach was the idea I came
> up with.

So, a good reason to just let them all float and allow the assigned
width take care of making your rows.

> I have 3 floating across now as you have yours set up but I want to separate
> / divide the rows with some graphics / lines so its not just a chunk of text
> and boxes, that's where the 3 per div / separate next 3 / separate and so on
> comes in.

Well, that's certainly more complicated.

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: