473,394 Members | 2,020 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,394 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 6084
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
0
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...

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.