Click to See Complete Forum and Search --> : set color and bgcolor of form elements
jitseschaafsma
11-24-2003, 02:13 AM
Couls someone show me a sample code with which i set the font color and background color of a form element (type text) that is correctly rendered by safari.
All my experiments with class and font tag work with explorer and mozilla but not in Safari.
Thanks
Jitse Schaafsma
requestcode
11-24-2003, 12:53 PM
Maybe this resource will help:
http://developer.apple.com/internet/safari.html
fredmv
11-24-2003, 01:14 PM
Try this:<input type="text" value="foo" style="background-color: #000; color: #fff;" />If that doesn't work I'd be surprised. That's simple CSS1.
jitseschaafsma
11-24-2003, 03:33 PM
this is what i used
<input type="text" name="v1" style="background-color: #FFFF66; color: #ffff66;" value="Menso">
Form element is just black on white background.
Please help me out
Thanks
Jitse Schaafsma
Paul Jr
11-24-2003, 05:04 PM
I tried this, and it works fine for me.
<input type="text" name="v1" style="background-
color:#000;color:#F00;border:2px groove #F00;"
value="Menso">
That gives it red text, black background, and a red, 2 pixel grooved border.
7hunters
11-24-2003, 08:26 PM
What I do is use dreamweaver and create a new class like this in my .CSS
.prettyform {
font-family: "Arial Rounded MT Bold", "Arial Black", Arial;
font-size: 12px;
color: #FFFFFF;
background-color: #0000CC;
border: thin solid #0099FF;
}
Then I clicked inside the text boxes (on Design View) and applied the class.
This give a pale grey interior with a thin blue border if I remember right. I have also made dark black interiors with white text that is fun to do but not accessible so not good for a live website. You can also make a custom class style for the Sumbit button. (or use an image)
jitseschaafsma
11-25-2003, 02:53 AM
Just to make sure,
i have tried all of your suggestions, many thanks again.
Although they work in my other browsers, they do not work in Safari 1. v85.5.
Could you please tell me if you have succefully implemented for a safari browser.
Thanks
Jitse