473,573 Members | 2,753 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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;pas sword <input type="password" name="textfield "
size="15">
&nbsp;&nbsp;<in put 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 6095
Scripsit ab**********@ya hoo.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;pas sword <input type="password" name="textfield "
size="15">
&nbsp;&nbsp;<in put 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
2412
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 me what I am doing wrong. Thanks, Susan <html> <head>
0
2167
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
41390
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" height="15" style="border: 1px solid #000; background:#00cc00"> .... </tabel> and
0
1576
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). http://pudge.lesscode.org/trac/ticket/21 http://pudge.lesscode.org/trac/changeset/126
1
860
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" name="textfield" size="15"> <input type="submit" name="Submit" value="sign in"> </form> But when I come to view it in a browser (IE6) thee-mail text...
7
9155
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
3767
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 network. Usually the colored text must be black, right? BTW, I'm using Win XP Service Pack 2. : ) Rey Sean
1
1619
by: pinkfloydhomer | last post by:
Can I write colored output with Debug.Write() to the Output Window? /David
2
1896
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 ----------------------------------------------------------------- Algorithm colored graphs Input: graph G = (V, E). Output: graph G = (V, E) is the...
0
7707
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...
0
8213
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7799
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...
0
8080
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...
0
5296
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3737
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...
0
3742
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2226
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1320
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.