Link to home
Start Free TrialLog in
Avatar of smegghead
smeggheadFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Netscape is fantastic

I've got the following HTML script...

<style type="text/css">
<!--
SELECT {color=green;}
-- >
</style>
<HTML>
<BODY>
<FORM name=banana>
<SELECT name=X1 SIZE=5>
<OPTION value="X26">Line1</OPTION>
<OPTION value="X24">Line2</OPTION>
<OPTION value="X20" style='background:#000000; color:#ff00ff'>Line3</OPTION>
<OPTION value="X28">Line4 </OPTION>
<OPTION value="X4">Line5</OPTION>
</SELECT>
</FORM>
</BODY>
</HTML>

This displays perfectly in IE, but Netscape ?? nope - it just comes up black on a white background... am I missing something ???
Avatar of coopa
coopa

As you said in the title...
"Netscape is fantastic"
8o)

I'm afraid that those style tags are not supported in Netscape.

You could use JSS tags... but there s a problem....

For some reason this works.

<style type="text/javascript">
</style>
<p style ="color = 'red';"> blah </p>

But this doesn't !!!

<style type="text/javascript">
</style>
<FORM name=banana>
<SELECT name=X1 SIZE=5>
<OPTION value="X20" style ="color = 'red';">pick me</OPTION>
</SELECT>
</FORM>

Oh... I give up.

Good luck.
As fas as I know you can't change the color of a select box in NN

xabi
your HTML isn't right.  you'll have to move the STYLE element inside the HTML element.  proper HTML is very often the reason for CSS problems.

color=green isn't correct CSS, instead the property and value should be separated by :.  changing it made the color right in IE.

it didn't come up black on black in my Netscape 4.7 though.  just the regular black on white, which isn't surprising since Netscape is not good at applying style to form elements.
xabi is correct - there is no way to change the color in Netscape
Avatar of smegghead

ASKER

Hi, I've decided to change the layout of my web-page to make it look crap, just so that it works with NS...
This question has a deletion request Pending
This question no longer is pending deletion
I object to the deletion.  you asked a simple question, marked it as "easy", and got correct answers from several experts.  even though the answer may not have been positive, the answers were correct and one or more of them should therefore be graded.
Agreed.
Ok, fair enough...

But I really don't know who to award the points to, nobody told me that it can be done, everybody told me it can't be done.. so you've all answered in the same way.

So, do I split the points between the four of you or do I ask a tie-break question ?

The tie-breaker, should you wish to play, is...

Why is NetScape better than IE ?? (in no more than 1000 words)
ASKER CERTIFIED SOLUTION
Avatar of coopa
coopa

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Use

<style>
FORM {background-color: green}
</style>

and SIZE=1
Then NS gives a green select of size 1.
All others fail to work.

Hope this helps,
      Bob
thanks 4 bobs, but I don't understand what you mean.
I searched Deja News a bit and found a document written by Jukka Korpela that seems to address this problem specifically.

http://www.hut.fi/u/jkorpela/forms/present.html
Here you are...

PS. I couldn't find this specific issue on the website specified by netrom...

Smg.

 heheheheh Thanks smegghead

 8o)