• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 140
  • Last Modified:

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 ???
0
smegghead
Asked:
smegghead
  • 5
  • 4
  • 4
  • +3
1 Solution
 
coopaCommented:
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.
0
 
xabiCommented:
As fas as I know you can't change the color of a select box in NN

xabi
0
 
nettromCommented:
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.
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
lexenCommented:
xabi is correct - there is no way to change the color in Netscape
0
 
smeggheadAuthor Commented:
Hi, I've decided to change the layout of my web-page to make it look crap, just so that it works with NS...
0
 
smeggheadAuthor Commented:
This question has a deletion request Pending
0
 
nettromCommented:
This question no longer is pending deletion
0
 
nettromCommented:
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.
0
 
coopaCommented:
Agreed.
0
 
smeggheadAuthor Commented:
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)
0
 
coopaCommented:
I'll summarise in three words...

Netscape is sh1t.

8o)
0
 
bobbobbobbobCommented:
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
0
 
smeggheadAuthor Commented:
thanks 4 bobs, but I don't understand what you mean.
0
 
nettromCommented:
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
0
 
smeggheadAuthor Commented:
Here you are...

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

Smg.
0
 
coopaCommented:

 heheheheh Thanks smegghead

 8o)
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 5
  • 4
  • 4
  • +3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now