Forum Moderators: not2easy
This is my very first post on here and I'm hoping that this is a simple question.
Although I've been designing sites for over five years now, I'm very new to Mozilla Firefox and one of the sites that I designed, which my client is very happy with looks awful in FF.
The text displays as Times Roman (default?) and the text links which should change colour on mouseover flash on and off.
I need to fix this but I can't find out what to do.
Can anybody point me in the right direction please? I suspect that I need a style sheet that is compatible with both browsers.
Many thanks, in advance.
Steve
In order to help with your specific problems, why don't you post the relevant CSS and HTML for the page in question? Then we'll be able to help spot any problems or compatibility issues.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>...</title>
...
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="1" content="...">
<meta name="2" content="...">
<STYLE type="text/css">
<!--
BODY {
scrollbar-base-color: #0099FF;
scrollbar-track-color: #A4A4A4;
scrollbar-face-color: #01588D;
scrollbar-highlight-color: #0099FF;
scrollbar-3dlight-color: #0099FF;
scrollbar-darkshadow-color: #666666;
scrollbar-shadow-color: #666666;
scrollbar-arrow-color: #FFFFFF;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px; }
}
.style1 {font-family: Verdana, Arial, Helvetica, sans-serif}
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.style2 {
font-size: larger;
font-weight: bold;
}
.style4 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: smaller;
font-weight: bold;
}
.class5 A:link {
color: #CCCCCC;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
font-weight: bold;
text-decoration: blink;
}
.class5 A:visited {
color: #CCCCCC;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
font-weight: bold;
text-decoration: blink;
}
.class5 A:active{
color: #0099FF;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
font-weight: bold;
text-decoration: blink;
}
.class5 A:hover{
color: #A4A4A4;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
font-weight: bold;
text-decoration: blink;
}
.class6 A:link {color: #666666;}
.class6 A:visited {color: #666666;}
.class6 A:active {color: #00CCFF;}
.class6 A:hover {color: #CCCCCC;}
}
.class7 A:link {
color: #CCCCCC;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
text-decoration: blink;
}
.class7 A:visited {
color: #CCCCCC;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
text-decoration: blink;
}
.class7 A:active{
color: #0099FF;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
text-decoration: blink;
}
.class7 A:hover{
color: #A4A4A4;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
text-decoration: blink;
}
-->
</style>
</head>
<body bgcolor="#FFFFFF">
... Content ...
</body>
</html>
[edited by: BlobFisk at 5:40 pm (utc) on May 4, 2005]
[edit reason] Removed URLs and stripped out code [/edit]
As far as the font goes, I've noticed you have some custom classes and each class specifies the same font:
font-family: Verdana, Arial, Helvetica, sans-serif;
But the body tag has no font specified. You should always specify the base font settings in the body tags. If you're using tables, you'll have to specify the font settings for tds as well, because some browsers won't properly allow table tags to inherit from the body tag.
Below I've tweaked your CSS to be more effecient. I've also reorganized the font settings the way the should be and eliminated a few typos.
body, td, th {
font-family: Verdana, Arial, Helvetica, sans-serif;
}body {
scrollbar-base-color: #0099FF;
scrollbar-track-color: #A4A4A4;
scrollbar-face-color: #01588D;
scrollbar-highlight-color: #0099FF;
scrollbar-3dlight-color: #0099FF;
scrollbar-darkshadow-color: #666666;
scrollbar-shadow-color: #666666;
scrollbar-arrow-color: #FFFFFF;
margin: 0px;
}.style1 {}
.style2 {
font-size: larger;
font-weight: bold;
}.style4 {
font-size: smaller;
font-weight: bold;
}.class5 :link {
color: #CCCCCC;
font-size: 14px;
font-weight: bold;
}.class5 :visited {
color: #CCCCCC;
font-size: 14px;
font-weight: bold;
}.class5 :active{
color: #0099FF;
font-size: 14px;
font-weight: bold;
}.class5 :hover{
color: #A4A4A4;
font-size: 14px;
font-weight: bold;
}.class6 :link {color: #666666;}
.class6 :visited {color: #666666;}
.class6 :active {color: #00CCFF;}
.class6 :hover {color: #CCCCCC;}
}.class7 :link {
color: #CCCCCC;
font-size: 12px;
font-weight: bold;
}
.class7 :visited {
color: #CCCCCC;
font-size: 12px;
font-weight: bold;
}
.class7 :active{
color: #0099FF;
font-size: 12px;
font-weight: bold;
}
.class7 :hover{
color: #A4A4A4;
font-size: 12px;
font-weight: bold;
}
-->
There's a bit more that could be done, such as specifying a base font size for the body, td, th element. I also took out the blink effect in the assumption that you justed wanted the links to change color on mouseover. Hope that helps.