By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,632 Members | 1,425 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,632 IT Pros & Developers. It's quick & easy.

How to set space between radio button and text

P: n/a
hello,

I have a form where i have a number of radio buttons.

How can i change space between the radio button and its text

example

o first radio button
o second radio button

Thank you in advance.

Gaurav
Jul 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
On 23 Jan 2004 07:34:38 -0800, Gaurav <ba********@hotmail.com> wrote:
hello,

I have a form where i have a number of radio buttons.

How can i change space between the radio button and its text

example

o first radio button
o second radio button

Thank you in advance.

Gaurav

I would set a class on the input element I want changed and set
margin-right in the CSS. Or set margin-left on the text.
Jul 20 '05 #2

P: n/a
"Gaurav" <ba********@hotmail.com> schrieb im Newsbeitrag
news:42*************************@posting.google.co m...
hello,

I have a form where i have a number of radio buttons.

How can i change space between the radio button and its text

example

o first radio button
o second radio button

Thank you in advance.

Gaurav


<input type="radio" .....> Text
<input type="radio" .....> &nbsp;&nbsp;&nbsp;Text
HTH
Markus
Jul 20 '05 #3

P: n/a
"Markus Ernst" <derernst@NO#SP#AMgmx.ch> wrote in message
news:40***********************@news.easynet.ch...
"Gaurav" <ba********@hotmail.com> schrieb im Newsbeitrag
news:42*************************@posting.google.co m...
hello,

I have a form where i have a number of radio buttons.

How can i change space between the radio button and its text

example

o first radio button
o second radio button

Thank you in advance.

Gaurav


<input type="radio" .....> Text
<input type="radio" .....> &nbsp;&nbsp;&nbsp;Text


This, of course, being the outdated method from before the days of CSS for
presentational aspects.
Use CSS instead.

Regards,
Peter Foti
Jul 20 '05 #4

P: n/a
Neal wrote:
On 23 Jan 2004 07:34:38 -0800, Gaurav <ba********@hotmail.com> wrote:
I have a form where i have a number of radio buttons.
How can i change space between the radio button and its text

example

o first radio button
o second radio button


I would set a class on the input element I want changed and set
margin-right in the CSS. Or set margin-left on the text.


Or use padding on the text, which should be marked up a <label>, if
you want that space to be part of the area one can use to select that
radio button.

--
Brian (follow directions in my address to email me)
http://www.tsmchughs.com/

Jul 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.