View Full Version : CSS Scrollbars Appear randomly


centralcan
12-27-2004, 12:19 PM
Silly question,

my CSS scrollbars only work on some of my HTML documents. Even if i copy and paste the exact HEAD section of my HTML doc to the other pages. These pages are being LOADED into an IFRAME

Here is what the head looks like..

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<HTML>
<HEAD>
<TITLE></TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1251">
<style type="text/css">
<!--
td {
text-align: left;
vertical-align: top;
font-family:Tahoma;
font-size:11px;
color:#818181;
}
a {
text-decoration: underline;
color:#84A7CF;
}
a.1 {
text-decoration: none;
color: 000000;
}
.t11 {
font-family: Tahoma;
font-size: 11px;
font-style: normal;
}
body {
margin:0px;
padding:0px;
background-color: #FFFFFF;
scrollbar-base-color: #ffffff;
scrollbar-face-color: #ffffff;
scrollbar-track-color: #ffffff;
scrollbar-arrow-color: #CCCCCC;
scrollbar-highlight-color: #ffffff;
scrollbar-3dlight-color: #CCCCCC;
scrollbar-shadow-color: #ffffff;
scrollbar-darkshadow-color: #CCCCCC;
}
.style1 {color: #FFFFFF}
.style5 {font-size: 9px}
-->
</style>

any ideas folks?

Take Care

wergo
12-27-2004, 02:15 PM
<html>
<head>
<HTML>
<HEAD>

you have two opening html and head tags. try and take the extra ones out and see what happens

centralcan
12-27-2004, 04:13 PM
i noticed that mistake.. silly one, but that still didnt fix it... here is the new markup of it;

<HTML>
<HEAD>
<TITLE></TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1251">
<style type="text/css">
<!--
td {
text-align: left;
vertical-align: top;
font-family:Tahoma;
font-size:11px;
color:#818181;
}
a {
text-decoration: underline;
color:#84A7CF;
}
a.1 {
text-decoration: none;
color: 000000;
}
.t11 {
font-family: Tahoma;
font-size: 11px;
font-style: normal;
}
body {
margin:0px;
padding:0px;
background-color: #FFFFFF;
scrollbar-base-color: #ffffff;
scrollbar-face-color: #ffffff;
scrollbar-track-color: #ffffff;
scrollbar-arrow-color: #CCCCCC;
scrollbar-highlight-color: #ffffff;
scrollbar-3dlight-color: #CCCCCC;
scrollbar-shadow-color: #ffffff;
scrollbar-darkshadow-color: #CCCCCC;
}
.style1 {color: #FFFFFF}
-->
</style>
</HEAD>


im beyond confused to why this is happening..

thanks for that heads up though

kittycat
12-27-2004, 04:13 PM
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

That might be a problem as well, doctype declarations and coloured scrollbars don't mix too well, so see if it works when you remove it.

centralcan
12-27-2004, 04:16 PM
hey there,

you nailed that right on. it works great when i remove the doc type line.

thanks to both of you that posted a reply....


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

That might be a problem as well, doctype declarations and coloured scrollbars don't mix too well, so see if it works when you remove it.