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

Text alignment in input tags

Lea
Hi,

I 've got a problem concerning the text alignment of my three input tags.
In IE6, the "login" and "ok" words are completely aligned on the bottom
border. Yet my padding is : 0px 0px 0px 1px;
Changing the line-height does not improve anything.
In FIREFOX 0.9.3, the text of the first input tag is fine. The asterisks of
the input type password are too high in text field. And finally, the text of
the third input tag is on the bottom border of the text field.

Pls find below the html and css codes. Any idea is kindly accepted. Thks.
Léa

HTML
<div id="ctnr">
<div id="header">...</div>
<div id="container">
<div id="memberArea">
<form action="php/areaMember.php" method="post">
<input type="text" name="login" value="login" size=15 maxlength=30 />
<input type="password" name="password" value="password" size=15 maxlength=30
/>
<input type="submit" name="submit" value="ok" />
</form>
</div>
....
</div>
</div>

CSS

body {
margin: 0px;
padding: 0px;
font-size: 12px;
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
color: Black;
background-color: White;
text-align:center; /*IE5/Win incorrectly applies the CSS "text-align"
attribute to block-level elements. Declaring "text-align:center" for the
containing block-level element (often the BODY element) horizontally centers
the box in IE5/Win */
}
/* Page centering */
div#ctnr {
width : 750px;
margin-top: 0px;
margin-left: auto;
margin-right: auto;
padding: 0px;
text-align: left
}
....
div#memberArea {
background-image: url(images/areaMember2.gif);
height: 20px;
width: 750px;
}
form {
float: right;
padding: 0px;
margin: 0px;
width: 250px;
}
input {
margin: 1px 3px 1px 0px;
padding: 0px 0px 0px 1px;
height: 14px;
border:1px solid gray;
color: #666666;
font-size: 10px;
vertical-align: middle;
}
....

Jul 20 '05 #1
0 5867

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

Similar topics

1
by: Sam Quigley | last post by:
Hi, I want to use XSL to wrap paragraphs of text in <p> tags automatically, basically using the heuristic that two chunks of text separated by 2 consecutive newlines are to be treated as two...
12
by: Randell D. | last post by:
Folks, I have a form called "ourTestForm". Its a test form - nothing special - it contains five input tags - they are named one, two, three, four and five. The input tags are of type...
3
by: Bahman | last post by:
Hello! May be I am missing something. In the library it says the property is called 'TextAlign' or some such thing. But nothing works here like that. Is the library up to date or am I...
2
by: crucialmoment | last post by:
Greetings, I am trying to automatically pull a beginning section from submitted text and return it with a More.. link. The submitted text is in html created by FckEditor...
21
by: Hallvard B Furuseth | last post by:
Is the code below valid? Generally a value must be accessed through the same type it was stored as, but there is an exception for data stored through a character type. I'm not sure if that...
6
by: rn5a | last post by:
When the EditCommandColumn in a DataGrid is clicked, all the BoundColumns get replaced by TextBoxes so that users can alter the data. By default, the Text in the TextBoxes are left-aligned. Is...
11
by: C.W.Holeman II | last post by:
I what to hide an input element and the following text. I have the selector for the input working and just need to grab the text following it. CSS: form{ display:table; text-align:center; }
15
by: Matthew | last post by:
Hi, I'm mainly a coder, PHP at the moment, but from time to time need to design and use some css. I've a css text alignment issue. Mostly to align text neatly in the past I've used tables....
1
by: littlealex | last post by:
IE6 not displaying text correctly - IE 7 & Firefox 3 are fine! Need some help with this as fairly new to CSS! In IE6 the text for the following page doesn't display properly - rather than being...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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
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:
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
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...

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.