crristi
10-11-2004, 07:04 PM
Hi people.
I build some pages and i tested them just with IE. Now i tried with Netscape 7.0 and all my css styles are not working.
Look how i done it:
1. I create a css style page with the code:
A.menu:link {
color: #ffffff;
font-family:verdana,arial,helvetica;
font-size: 12px;
font-weight:bold;
TEXT-DECORATION: none
}
A.menu:hover {
color: #336699;
font-family:verdana,arial,helvetica;
font-size: 12px;
font-weight:bold;
TEXT-DECORATION: underline;
font-weight:bold;
font-style: normal;
line-height: normal;
font-variant: normal;
text-transform: none;
border: thin none #FFFFFF;
}
A.menu:visited {
color: #ffffff;
font-family: Verdana;
font-weight:bold;
font-size: 12px;
TEXT-DECORATION: none
}
A.menu:hover {
color: #336699;
font-family:verdana,arial,helvetica;
font-weight:bold;
font-size: 12px;
TEXT-DECORATION: underline
font-style: normal;
line-height: normal;
font-variant: normal;
text-transform: none;
border: thin none #FFFFFF;
}
i saved the file as menu.css
2. i create the menu with the links
if (document.all)
document.write(
"<div id='content' style='position: relative; width: 140px; height: 75px;'>\
\
<span class='menu'>\
<img src='../css-js/bumb.gif'/> <a href='index.htm', class='meniu_stanga'>first page</a>\
</span>\
\
<span class='menu'>\
<img src='../css-js/bumb.gif'/> <a href='arhiva_editoriale.htm' class='menu'>second page</a>\
</span>\
\
<span class='menu'>\
<img src='../css-js/bumb.gif'/> <a href='cititori.htm' class='menu'>third page</a>\
</span>\
\
</div>");
I saved it like menu.js
3. I created the web page well i add the js menu and i made a link to the css style page. But Netscape 7 is not seeing the css styles. what to do.
Here is the cod of the trial page im working on , to figure out what happening
<html>
<head>
<title>TRIAL</title>
<link href="style.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</script>
<body bgcolor="#999999" onLoad="settitle()">
<div id="Layer3" style="position: absolute; left: 121px; top: 238px; width: 201px; height: 19px; z-index: 3"><script language="JavaScript" src="menu.js" type="text/JavaScript"></script></div>
</html>
If somebody can tell me what to do is free to e-mail me also at crristi@tiscali.it
I build some pages and i tested them just with IE. Now i tried with Netscape 7.0 and all my css styles are not working.
Look how i done it:
1. I create a css style page with the code:
A.menu:link {
color: #ffffff;
font-family:verdana,arial,helvetica;
font-size: 12px;
font-weight:bold;
TEXT-DECORATION: none
}
A.menu:hover {
color: #336699;
font-family:verdana,arial,helvetica;
font-size: 12px;
font-weight:bold;
TEXT-DECORATION: underline;
font-weight:bold;
font-style: normal;
line-height: normal;
font-variant: normal;
text-transform: none;
border: thin none #FFFFFF;
}
A.menu:visited {
color: #ffffff;
font-family: Verdana;
font-weight:bold;
font-size: 12px;
TEXT-DECORATION: none
}
A.menu:hover {
color: #336699;
font-family:verdana,arial,helvetica;
font-weight:bold;
font-size: 12px;
TEXT-DECORATION: underline
font-style: normal;
line-height: normal;
font-variant: normal;
text-transform: none;
border: thin none #FFFFFF;
}
i saved the file as menu.css
2. i create the menu with the links
if (document.all)
document.write(
"<div id='content' style='position: relative; width: 140px; height: 75px;'>\
\
<span class='menu'>\
<img src='../css-js/bumb.gif'/> <a href='index.htm', class='meniu_stanga'>first page</a>\
</span>\
\
<span class='menu'>\
<img src='../css-js/bumb.gif'/> <a href='arhiva_editoriale.htm' class='menu'>second page</a>\
</span>\
\
<span class='menu'>\
<img src='../css-js/bumb.gif'/> <a href='cititori.htm' class='menu'>third page</a>\
</span>\
\
</div>");
I saved it like menu.js
3. I created the web page well i add the js menu and i made a link to the css style page. But Netscape 7 is not seeing the css styles. what to do.
Here is the cod of the trial page im working on , to figure out what happening
<html>
<head>
<title>TRIAL</title>
<link href="style.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</script>
<body bgcolor="#999999" onLoad="settitle()">
<div id="Layer3" style="position: absolute; left: 121px; top: 238px; width: 201px; height: 19px; z-index: 3"><script language="JavaScript" src="menu.js" type="text/JavaScript"></script></div>
</html>
If somebody can tell me what to do is free to e-mail me also at crristi@tiscali.it