473,385 Members | 1,764 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,385 software developers and data experts.

Positioning issues with radio/check buttons in relation to their label

Please take a look at this page:

http://deimos.curious.be/~dusk/conta...n=show_booking

As you can see the radio/check buttons do not line up with their label.
It works with the input fields (like name/email), but only because I
gave those a width so that the label + input field fill the formset.
Obviously I don't want to specify a width for radio/check buttons,
because it looks silly on browsers applying that with. Any other ideas?

Tia
TomB

Aug 27 '06 #1
5 1712
On 27 Aug 2006 07:00:50 -0700, "TomB" <to*************@gmail.comwrote:
>Please take a look at this page:

http://deimos.curious.be/~dusk/conta...n=show_booking

As you can see the radio/check buttons do not line up with their label.
It works with the input fields (like name/email), but only because I
gave those a width so that the label + input field fill the formset.
Obviously I don't want to specify a width for radio/check buttons,
because it looks silly on browsers applying that with. Any other ideas?
Well, if I understand correctly what you are trying to do, I don't think
you need to be floating the labels. Just let them take their normal
place in the flow and put a <BRafter each checkbox / radio button.

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Aug 27 '06 #2
Stephen Poley wrote:
Well, if I understand correctly what you are trying to do, I don't think
you need to be floating the labels. Just let them take their normal
place in the flow and put a <BRafter each checkbox / radio button.
The reason I use the float is to align the labels to the right. If I
just put <label><input><br><label><input><bretc. there is no
alignment. I could get the desired effect easily with a table, but I
want it to work with just css.

Tommy

Aug 27 '06 #3
TomB wrote:
>
http://deimos.curious.be/~dusk/conta...n=show_booking

As you can see the radio/check buttons do not line up with their label.
It works with the input fields (like name/email), but only because I
gave those a width so that the label + input field fill the formset.
Obviously I don't want to specify a width for radio/check buttons,
because it looks silly on browsers applying that with. Any other ideas?
I've found no universal solution to form layout.
The <label><input(or <input><label>) pair should be put in a <p>, and
the width for the <labelset as required for each form instance.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Aug 27 '06 #4

TomB wrote:
Stephen Poley wrote:
Well, if I understand correctly what you are trying to do, I don't think
you need to be floating the labels. Just let them take their normal
place in the flow and put a <BRafter each checkbox / radio button.

The reason I use the float is to align the labels to the right. If I
just put <label><input><br><label><input><bretc. there is no
alignment. I could get the desired effect easily with a table, but I
want it to work with just css.
I think I found the solution:
http://deimos.curious.be/~dusk/test.html

Aug 27 '06 #5
On 27 Aug 2006 09:20:39 -0700, "TomB" <to*************@gmail.comwrote:
>Stephen Poley wrote:
>Well, if I understand correctly what you are trying to do, I don't think
you need to be floating the labels. Just let them take their normal
place in the flow and put a <BRafter each checkbox / radio button.

The reason I use the float is to align the labels to the right. If I
just put <label><input><br><label><input><bretc. there is no
alignment. I could get the desired effect easily with a table, but I
want it to work with just css.
Ah, OK. A table would probably be acceptable here, but does a
clear: left
on your labels do what you want?

You'll also need a clear on an extra element after the last checkbox to
make the containing border extend far enough down. (At least in IE).

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Aug 27 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

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...
4
by: Jared | last post by:
Radio Button or Check Box and Event Procedures I need to insert either radio buttons or check boxes onto my form. I'm not sure which to use, or if there are other options. I am using the buttons...
24
by: Mike Otten | last post by:
Any help greatly appreciated. The validated page is at: http://myweb.stedwards.edu/michaelo/ddtab.htm The trouble is with the radio buttons (2/3-down the left column). The radios are...
1
by: Joe Attardi | last post by:
Hi all, On a form on one of my pages I have two <select> elements, and each one is paired up with a radio button. The idea is to choose an item from one list or the other and select the radio...
1
by: Bob Sanderson | last post by:
I have a form which uses several radio buttons to enter data. It works fine as far as entering goes, but I can't figure out how to display which button is checked when I view the record. I could do...
4
by: Blasting Cap | last post by:
I have a page that has a number of radio buttons that will be displayed to different access levels of a user who logs in to my website. For instance, if there are a dozen buttons, user1 will see...
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...
10
by: =?Utf-8?B?UGFycm90?= | last post by:
I have 8 radio buttons on my Windows form but I can only select up to the first 4. If I click on any button beyond the 4th one and then come back into the program again the 4th button is always...
3
by: Steve Swift | last post by:
I have a page containing: <FORM NAME=radios> <INPUT TYPE=RADIO NAME=RAD VALUE=1 ID=RAD1> <LABEL FOR=RAD1>Check One</LABEL> <A onClick="document.radios.RAD.checked=false; return false">Uncheck...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.