Web Design Web Design Forum
Registration is free! Here you can view your subscribed threads, work with private messages and edit your profile and preferences Calendar Find other members Frequently Asked Questions Search
Home Web Design

Convenient web based access to our favorite web design Usenet groups

web design reviews

This is Interesting: Free Magazines for Graphics designers and webmasters  





  Last Thread  Next Thread
Author
Thread Post New Thread   

Text alignment in input tags
 

Lea




quote this post edit post

IP Loged report this post

Old Post  08-26-04 - 05:28 PM  
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;
}
...







Post Follow-Up to this message ]
Sponsored Links
 





All times are GMT. The time now is 03:54 PM. Post New Thread   
  Previous Last Thread   Next Thread next
Stylesheets archive | Show Printable Version | Email this Page | Subscribe to this Thread

Popular forums

Adobe Photoshop forum Macromedia Flash Web Site Design
Dreamweaver FrontPage forum
JavaScript Forum XML forum
Style Sheets VRML
Forum Jump:
Rate This Thread:

 

XML RSS Feed web design latest articles Syndicate our forum via XML or simple JavaScript

Web Design archive  Database administration help  


Top Home  -  Register  -  Control Panel   -  Memberlist  -  Calendar  -  Faq  -  Search Top