This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Stylesheets > July 2007 > input tickboxes





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author input tickboxes
windandwaves

2007-07-11, 10:16 pm

Hi

I would like to to make a form with tickboxes:

[ ] option 1
[ ] option 2

etc...

Where the tickbox ( [ ] )is on the same horizontal line as the text.

Do I need to use any tricks?

Thank you

Nicolaas

rf

2007-07-11, 10:16 pm


"windandwaves" <nfrancken@XXXXXXXXXX> wrote in message
news:1184200778.225291.260760@57g2000hsv.googlegroups.com...
> Hi
>
> I would like to to make a form with tickboxes:
>
> [ ] option 1
> [ ] option 2
>
> etc...
>
> Where the tickbox ( [ ] )is on the same horizontal line as the text.


> Do I need to use any tricks?


Why would they *not* be on the same line?

--
Richard.


Bergamot

2007-07-12, 6:16 pm

Jukka K. Korpela wrote:
>
> <div><label><input type="checkbox" name="o" value="1"> option
> 1</label></div>


FYI, IE won't really associate[1] the label with the checkbox unless you
include the "for" attribute, which means giving the checkbox an id. I
don't know if this was corrected in IE7 or not.

[1] Clicking on the label checks/unchecks the checkbox.

--
Berg
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews