473,666 Members | 1,991 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Aligning form labels and text-inputs

I've got a small little problem with my 'website-in-progress':

http://www.captainsoftheworld.com/mo...rict/index.php
http://www.captainsoftheworld.com/mo...rnRepublic.css

Is it possible, without messing around with per-pixel positioning or sizing,
to make the labels ("Name" & "E-mail") in the Mailing List form line up with
their associated text-input areas? In my system's setup (using IE6) the
labels sit just slightly above the text-input areas (or conversly, the
text-inputs sit slightly below their respective labels).

Any way to clean that up?

Thanks!
~Geoff
Jul 20 '05 #1
3 3211
Geoff Hague wrote:

Is it possible, without messing around with per-pixel positioning or sizing,
to make the labels ("Name" & "E-mail") in the Mailing List form line up with
their associated text-input areas? In my system's setup (using IE6) the
labels sit just slightly above the text-input areas (or conversly, the
text-inputs sit slightly below their respective labels).

Any way to clean that up?

Use a table. It's tabular data. And throw in the other elements of the
mailing list as well.

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jul 20 '05 #2
Geoff Hague wrote:
I've got a small little problem with my 'website-in-progress':

http://www.captainsoftheworld.com/mo...rict/index.php
Validate your html *before* asking for help.

http://diveintomark.org/archives/200..._wont_help_you
Is it possible, without messing around with per-pixel positioning or
sizing, to make the labels ("Name" & "E-mail") in the Mailing List
form line up with their associated text-input areas?


2 solutions.

(1) use a table, label in one column, input in the other
http://www.tsmchughs.com/contact/

(2) float the label left, define a width for it
http://www.julietremblay.com/contact/

BTW, please consider using the <label> element for your input labels.
And please lose the microfonts.

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 20 '05 #3
CG.
Hi Georg,
The border size in <label> is different of <input>.Due to improper
implementation of the box model in IE, there is a different rendering of
your elements.
If you use 1px solid #color for input, you should use it for the label
also. (i.e.: 1px solid none)

Better you name input{}and label{}in your css.
And test your layout in many browsers.

....you don't have to use tables :-))

hth,
Christian G.
Jul 20 '05 #4

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

Similar topics

7
1940
by: pizzy | last post by:
PROBLEM: I CAN'T GET THE LAST RESUTS TO WORK CORRECTLY. I WOULD PROVIDE THE CODE (AND WILL IF REQUESTED). BUT IN MY OWN WORDS I AM TRYING TO HAVE THE FIRST FORM DYNAMICALLY CREATE INPUT BOXES BASED ON THE NUMBER ENTERED. THEN ON THE SECOND FORM (WHICH IS CREATED BY THE FIRST FORM CALLING A FUNCTION) I WANT THE USER TO BE ABLE TO CLICK ON ONE OF THE CHECKBOXES AND SEE MORE INPUT BOXES APPEAR. HAS ANYONE DONE SOMETHING LIKE THIS? IF SO,...
7
2976
by: Jared | last post by:
Here is my situation. I have multiple labels on a form but only certain ones will become visible while using the form. Depending on which check box(s) you pick, on another form, determines the labels that appear. I have that much working as of now. What I need to know is, how do I format the labels to align underneath one and other. So when I check the first check box, the corresponding label appears and when I check the third check box...
1
3839
by: tesc | last post by:
I'm sure this is pretty simple but I'm having a hard time with it. I have a report that has multiple columns and have to change some of the titles in the page header. As a result, the titles don't match up with the detail. I've used the all the formatting buttons such as align, size, etc. but it doesn't seem to work that well. I've also tried highlighting the page header and detail at the same time and formatting at the same time -...
27
1757
by: Peter | last post by:
hi there, i'm developing an aplication that uses 4 forms. Each form has about 2000 labels, when I try to open my third form, an error ocurrs, but no error mesage appears. I've realised that if I try to crate a form collection like: sub Test() Dim f as new Form1 f.show end sub
1
1918
by: Linux Boy via .NET 247 | last post by:
(Type your message here) Hi everyone, I would like to ask a question about aligning text within one label. I have an application that everytime the user click on Enter Record button, they will be prompt an input box to enter employee names and sales figures. The output then will be displyed in only 1 label using a For loop. The layout would be under 3 columns: Employee name (left justified), Sale figures (right justified) and Bonus...
3
1506
by: Galen Somerville | last post by:
In two different Form modules FFTcls.Currfrm = Me In FFTcls class module Dim CurrForm As System.Windows.Forms.Form Public WriteOnly Property Currfrm() As System.Windows.Forms.Form Set(ByVal Value As System.Windows.Forms.Form) CurrForm = Value
3
2577
by: Benny | last post by:
Does anyone have ideas on how to align two controls at runtime? I have two labels, label above label, and once I change the bottom, it is obviously not aligned, but for appearance purposes I would like the bottom centered to the top. Any ideas greatly appreciated.
2
4025
by: KC-Mass | last post by:
I have a form that is used to ID and then load Excel files into Access. I use labels on the form to record which file was last loaded. That was accomplished with a simple lblFileLoaded = strFullFileName. The label would show the file name and when the form was closed and then opened it would still show the name of the last file loaded. That preserves an important piece of information. Suddenly the form has stopped doing that. When you...
2
4138
by: Casimir | last post by:
What would be the correct way to align checkboxes and their labels, in your opinion? For example .... <td> <input type="checkbox" class="cbox" name="thisCheck" /> <label for="thisCheck">Check this if you want a copy</label><br/> </td>
3
11954
by: Bram2 | last post by:
When putting a form on a webpage, I prefer the labels and edit boxes for all fields to be aligned, e.g. like this: http://i44.tinypic.com/6dvceo.png This is easily done by putting it all in a table. What is the best way to do this properly with CSS? Note: I don't want to define fixed widths for certain columns or whatever. The width for the labels should just be automatically as much as necessary to fit the widest label. I first...
0
8445
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8356
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8551
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8640
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7386
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6198
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4198
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4369
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2011
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.