473,471 Members | 1,733 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How do I get my checkboxes to line up.

1 New Member
I am not sure what I am doing wrong. I believe it is in the css code but I want my page to line up the checks next to the words in the three rows with three columns. I also need the name and address fields to all line up on the left.

/*
Filename: forms.css
Supporting Files: none

*/
fieldset {margin-bottom: 10px; padding: 10px; background-color: rgb(237,233,223)}

label.blockLabel {display: block; position: relative; width: 450px; margin: 12px 0px}

label.blockLabel input {position: absolute; float: left; left: 140px}

#donationForm span {color: red}

label.indentLabel {margin-left: 140px}

#fName, #lName {width: 250px}
#street {width: 350px}
#phone, #city {width: 150px}
#state {width: 40px}
#zip {width: 80px}

#experience {width: 450px; padding: 5px}

#interestField {position: relative; width: 450px; height: 120px; padding: 5px}


#interest1 {position: absolute; height: 20px; left: 0px}
#interest2 {position: absolute; height: 20px; left: 140px}
#interest3 {position: absolute; height: 20px; left: 280px}
#interest4 {position: absolute; height: 50px; left: 0px}
#interest5 {position: absolute; height: 50px; left: 140px}
#interest6 {position: absolute; height: 50px; left: 280px}
#interest7 {position: absolute; height: 80px; left: 0px}
#interest8 {position: absolute; height: 80px; left: 140px}
#interest9 {position: absolute; height: 80px; left: 280px}


Any help would be great!

Thanks!
Nov 10 '10 #1
2 2446
Death Slaught
1,137 Top Contributor
Please use code tags when posting code - select the text and click the # button in the editor. Also, please post your HTML along with your CSS. Otherwise you're just telling us half of the story, and that makes it difficult to help you.


Thanks, Death
Nov 10 '10 #2
drhowarddrfine
7,435 Recognized Expert Expert
You'll need to set the vertical-align property.
Nov 11 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: DylanM | last post by:
I have some checkboxes that are generated from the results of a database search. At the moment, the checkboxes are part of a table making up a form. Users are going through the form, clicking the...
8
by: Ralph Freshour | last post by:
I have multiple checkbox's created with an array name because I have many on the same web page - their names are like: frm_chk_delete frm_chk_delete frm_chk_delete frm_chk_delete etc. Here...
10
by: Steve | last post by:
I'm not sure if I should be using tables here to structure the layout or if CSS is okay. I have a data entry form in which I have floated the labels to one side, and given them a specific width....
6
by: terence.parker | last post by:
I currently have the following JS in my header: function checkall(thestate) { var checkboxes=eval("document.forms.EssayList.file_id") for (i=0;i<checkboxes.length;i++)...
5
by: Craig Lister | last post by:
Newish to c# - Coming from Delphi. I'd like to add 255 checkboxes to a screen at runtime, and name then cb1, cb2... cb255 The code below does not work, but, how can I get this to work? public...
34
by: clinttoris | last post by:
Hello Experts, I have been told to post this in the Javascript forum as I want to do this client side just before my form gets submitted. Once the user clicks the submit button a javascript...
1
by: RLN | last post by:
Re: Access 2003 I found a method here in the newsgroup that works for clearing checkboxes, but don't understand a particular line of code and how it works. Here is the code: 1. Dim ctrl As...
10
by: rn5a | last post by:
All the rows in a DataGrid, including the Header, are accompanied with a CheckBox. I want that when the CheckBox in the Header is checked, then all the CheckBoxes should automatically get checked....
7
by: Srikanth Ram | last post by:
Hi, I'm creating a PHP application. In this a dynamic table with the fields in the database is generated in a page. I have placed a checkbox in each row of the table to approve/disapprove...
19
by: Brian Kendig | last post by:
I want to have a set of nested UL elements where every LI has a checkbox associated with it, and the checkboxes are all lined up vertically either to the left or the right of the list. In other...
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,...
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...
1
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.