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

Hi, Can you use CSS class with n

Status
Not open for further replies.

JazzLeg

Programmer
Aug 22, 2002
63
GB
Hi,

Can you use CSS class with netscape? I have found that it seems t completely ignore and font formatting. Is there a way around this?

Many thanks
 
send CSS and HTML file please. Water is not bad as long as it stays out human body ;-)
 
style sheet:

H1
{
FONT-WEIGHT: bold;
FONT-SIZE: 12pt;
COLOR: #336699;
FONT-FAMILY: Arial;
TEXT-ALIGN: left
}
H2
{
FONT-WEIGHT: normal;
FONT-SIZE: 10pt;
COLOR: black;
FONT-FAMILY: "tahoma";
TEXT-ALIGN: left;
TEXT-DECORATION: none
}
H3
{
FONT-WEIGHT: normal;
FONT-SIZE: 8pt;
COLOR: #336699;
FONT-FAMILY: "tahoma";
TEXT-DECORATION: none
}
A.top:link
{
FONT-SIZE: 8pt;
COLOR: black;
FONT-FAMILY: "arial";
TEXT-DECORATION: none
}
A.top:hover
{
FONT-SIZE: 8pt;
COLOR: black;
FONT-FAMILY: "arial";
BACKGROUND-COLOR: #ff9900;
TEXT-DECORATION: underline
}
A.top:visited
{
FONT-SIZE: 8pt;
COLOR: black;
FONT-FAMILY: "arial";
TEXT-DECORATION: none
}
A:link
{
FONT-WEIGHT: normal;
COLOR: #000066;
FONT-FAMILY: Arial;
TEXT-DECORATION: underline
}
A:hover
{
COLOR: #ff9900;
FONT-FAMILY: Arial;
TEXT-DECORATION: underline
}
A:visited
{
COLOR: #000066;
FONT-FAMILY: Arial;
TEXT-DECORATION: underline
}
.page_title1
{
FONT-WEIGHT: bolder;
FONT-SIZE: 14pt;
COLOR: #336699;
FONT-FAMILY: Arial
}
.page_title2
{
FONT-WEIGHT: bold;
FONT-SIZE: 12pt;
COLOR: #336699;
FONT-FAMILY: Arial
}
.body_text
{
FONT-SIZE: 2px;
COLOR: #336699;
FONT-FAMILY: Arial
}
.bar
{
BACKGROUND-COLOR: #336699
}
.bar_text
{
FONT-SIZE: 10pt;
COLOR: white;
FONT-FAMILY: Arial
}

I found that the html tags work in netscape but the classes don't effect the font.

This is how I try and use the class style (which works in IE):

<span class=&quot;page_title1&quot;>text</span>
 
You said : &quot;I found that the html tags work in netscape but the classes don't effect the font.&quot;

it doesn't work at all or only some attributes don't work ? Water is not bad as long as it stays out human body ;-)
 
Parts of the style sheet work. The HTML tags like <h1>, <h2>, <h3>, and all the hyperlink definitions work. Its just the definitions that start with a full stop that don't work properly, e.g. 'page_title1'.

It seems that I cannot use class to format text in netscape. It will however format bgcolor.
 
No! You can format text in NN with CSS.

try taking out the _
As slight as it may be it can cause issues. I never liek to use them in any kind of naming conventions due to characters like that causing problems.

also as cian asked what version of NN are you testing this on? Just a suggestion: faq183-874
admin@onpntwebdesigns.com
 
just a note
the code works in NN 7.0 + 6.2
IE 5.5 + 6.0

I did not try it with the _ within the naming though Just a suggestion: faq183-874
admin@onpntwebdesigns.com
 
i'm afriad it needs to be compatible with netscape 4.7....
 
Hey hey, thanks onpnt, i took out the underscore naming convention from my class names and now they work!

how strange?? Thanks for your help guys.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top