Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS and text box

Status
Not open for further replies.

lazydays

Technical User
Sep 29, 2003
93
GB
Hi,

I use an external css sheet for my pages.
I am trying to set style for text boxes on my page and have the following code:

.TextBox {font-size: 9;
background-color: b8dced; }

It changes the style for some text boxes but not others.

I have checked and made sure that the the <input> tag includes the class element.

Any ideas why it's not always working?
 
Can you show the rest of the code or a link to the page?

When you say "Text Box" do you mean only <input type="text"> or ALL input fields in a form?

Why not set a style for the <input> tag instead of using a class?

 
I didn't think of just setting a style for the <input> tag! Thanks!!

I have checked in Opera, Mozilla and Netscape and they all display correctly.
Please don't tell me that this is IE being 'helpful' and trying to highlight what it considers as important fields...
 
Please don't tell me that this is IE being 'helpful' and trying to highlight what it considers as important fields...

What would give you a silly idea like that? [ponder]

There's always a better way. The fun is trying to find it!
 
This is because of your Google Toolbar settings!
To disable the annoying yellow, click Options in your Google Toolbar. Click the More tab and uncheck "Highlight Fields that Autofill can fill".

*cLFlaVA
----------------------------
A polar bear walks into a bar and says, "Can I have a ... beer?"
The bartender asks, "What's with the big pause?
 
Thanks cLFlaVA!

Would never have thought of doing that!!
Sorted!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top