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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

text field

Status
Not open for further replies.

edd1eg

Programmer
Jun 27, 2003
123
0
0
GB
Hi there,

I have got a form with text field in it, is there anyway you can change the colour of the text field?

Something like this


thanks for any help

edd
 
just like this

Code:
.field {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 10px;
	line-height: 13px;
	background-color: #F4FFDC;
}


<input type="text" class="field">

hth

simon

 
where abouts do you actually put this in the code

thanks

edd
 
Here is simon's code wrapped in a blank document to give you an idea of where the style sheet stuff goes.

Code:
<html>
<head>
<title>some title</title>

<style type="text/css">
.field {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    line-height: 13px;
    background-color: #F4FFDC;
}
</style>
</head>

<body>
...
<input type="text" class="field">
...
</body>
</html>

Cheers,
Jeff
 
simon... here's a Haiku to explain my actions *lol*

It's winter cold in
London town, and I have to
keep my mind busy.

Fixing code and tips
brings a rosy summer glow
to my geeky soul.

Jeff
 

hehe

I'm in London too - by St Paul's, and it's not 'winter cold' - its f%$£"&^g freezing!!!

 

Have you done a lunchtime climb to the top of St Pauls? It's a hair-raising climb (certainly if you're worried about heights), but once at the top, the view is spectacular.

I used to be in New Fetter Lane, but moved to London Bridge, so no such frivolities for me anymore (although as a bonus, we do get Borough Market on a Friday ;o)

Dan
 
>> its f%$£"&^g freezing!!!

Eh? London is ussually warm compared to the rest of the UK. I've been stuck on the top of a hill in the midlands. Brrr... :/

----------
I'm willing to trade custom scripts for... [see profile]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top