473,320 Members | 2,006 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,320 software developers and data experts.

colored text box

I have created a very simple form
<form name="form1" method="post" action="" style="font-size:0.75em;">
e-mail <input type="text" name="textfield" size="15">
&nbsp;&nbsp;password <input type="password" name="textfield"
size="15">
&nbsp;&nbsp;<input type="submit" name="Submit" value="sign in">
</form>

But when I come to view it in a browser (IE6) thee-mail text box has a
colored backround.

Any explanation, and how do i get rid of the color?

Feb 21 '07 #1
1 6082
Scripsit ab**********@yahoo.com:
I have created a very simple form
<form name="form1" method="post" action="" style="font-size:0.75em;">
e-mail <input type="text" name="textfield" size="15">
&nbsp;&nbsp;password <input type="password" name="textfield"
size="15">
&nbsp;&nbsp;<input type="submit" name="Submit" value="sign in">
</form>
It's simply incorrect. The effect is undefined for form with action="".

It's also very poorly formatted. Many browsers already use too small font
size for input fields (using input, textarea, option, button { font-size:
100%; } in CSS fixes this, provided of course that you don't mess around
with the overall font size). No need to make things worse by reducing the
font size of textual labels by 25%. Besides, each label/field pair should
appear on a line of its own, have <labelmarkup, and not use no-break
spaces for formatting. Moreover, a visible width of 15 characters is too
little for a typical email address (did you count the characters in yours?)
and too much for a typical password field (usually at most 8 or 10 first
characters are significant).
But when I come to view it in a browser (IE6) thee-mail text box has a
colored backround.

Any explanation, and how do i get rid of the color?
I suppose Adrienne's explanation is correct, but you could try

input.txt { background: white; color: black; }

with

<input type="text" class="txt" ...>

(By CSS specs, you could dispense with the class attribute and use an
attribute selector:
input[type="text"] { background: white; color: black; }
but IE 6 won't understand it. IE 7 does.)

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Feb 21 '07 #2

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

Similar topics

2
by: Susan G. Conger | last post by:
When I run the following HTML in IE, the First Name, Last Name and Email fields are colored and are 3d controls while the other fields are not. I don't know why this is. Can someone please tell...
0
by: Anonieko Ramos | last post by:
> I have a graphics images that I want to convert to > ASCII art. How do I do it? > Code: - Default.aspx.cs
7
by: ashkaan57 | last post by:
Hi, I was trying to display a small colored square using <table> tag. It worked fine on the screen but when I do print preview, the square shows up as white. I used both: <table width="15"...
0
by: lazaridis_com | last post by:
Colored Code Blocks Pudge generated documentation can contain colored code blocks, using the rst directive "..code-block:: Python" (an other languages supported by SilverCity). ...
1
by: abracad_1999 | last post by:
I have created a very simple form <form name="form1" method="post" action="" style="font-size:0.75em;"> e-mail <input type="text" name="textfield" size="15"> password <input type="password"...
7
by: Rohan | last post by:
Hello, Can some one tell me how do I get colored text. Say when I want to write something in a text file , how do I get it colored.
2
lotus18
by: lotus18 | last post by:
Hello World Can anyone explain to me why i'm having a blue colored text in some of my files. My Local Disk (D:) also got it. I think I got this problem when I share my Local Disk (D:) over the...
1
by: pinkfloydhomer | last post by:
Can I write colored output with Debug.Write() to the Output Window? /David
2
by: khacthuy | last post by:
I need to write a program with content: Colored plane graphs. Tell people what I know. I always code for the study. Thanks please send me mail: khacthuy.3k@gmail.com I come from VietNamese...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.