473,401 Members | 2,146 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

How to set space between radio button and text

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
4 27546
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
"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
"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Oscar Monteiro | last post by:
I Have to sets of Radio buttons like so: <input type="radio" name=p1 value=1> <input type="radio" name=p1 value=2> <input type="radio" name=p1 value=3> <br> <input type="radio" name=p2 value=1>...
4
by: mitch-co2 | last post by:
What I am trying to do is when someone clicks on the YES radio button I want the text field called MYTEXT to equal the text field named DATE. The below code works as long as I do NOT UN-COMMENT...
3
by: ewitkop90 | last post by:
Here is my code: <SCRIPT> function transportchange(transport) { if (framenewinstall.Helpdesk.checked) framenewinstall.Helpdesk.checked=false; if (framenewinstall.CircuitNumber.checked)...
2
by: jimi_xyz | last post by:
Sorry if this isn't the correct group, i don't think there is a group for straight HTML. I am trying to create a type of search engine. There are two radio buttons at the top, in the middle there...
11
by: hygum | last post by:
I have combination of radio and select/input: http://sneleopard.dk/radio.html Is there a javascript which automatically sets radio 1, when the user does something with field 1, and automatically...
3
by: John Davis | last post by:
I created a ASP.NET Web Form using VB.NET with a text box, 2 radio buttons. When the user click the first radio button, the text will change to uppercase. If the user clicks the other radio button,...
0
by: vinay | last post by:
why are u not using the radiobutton list??? vinay >-----Original Message----- >I created a simple ASP.NET application with a text field, and 2 radio >buttons (uppercase and lowercase...
1
by: Jerry | last post by:
We have a 10-question quiz for kids, each question being a yes or no answer using radio selections. I'd like to keep a current total of yes's and no's at the bottom of the quiz (if the user selects...
7
by: moksha | last post by:
Hi, I am new to javascript and i am facing a problem in coding. plz help me out. I am using javascript for dynamically creating a table row which contains text boxes and radio...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.