+ Start a Discussion
cmarzillicmarzilli 

Stylesheets on S-Controls no color or icon?

 
But my the page title comes out with a gray background (should be the same color as an account) and no icon! :robotmad:
 
Code:
<HTML>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<link href="/dCSS/Theme2/default/common.css" type="text/css" media="handheld,print,projection,screen,tty,tv" rel="stylesheet" >
<link href="/dCSS/Theme2/default/custom.css" type="text/css" media="handheld,print,projection,screen,tty,tv" rel="stylesheet" >
<BODY class=”account”>
<DIV class=bPageTitle>
 <DIV class="ptBody secondaryPalette">
 <DIV class=content><IMG class=pageTitleIcon alt=Entity_Name src="/s.gif">
 <H1 class=pageType>Account<SPAN class=titleSeparatingColon>:</SPAN></H1>
 <H2 class=pageDescription>Sign Up</H2>
 </DIV></DIV></DIV>

 All I did was cut and paste the code from the doc.  Anyone know what I am doing wrong?

 
SnardSnard
That's a very old document (the code samples use the old beta AJAX toolkit, and reference API 6.0)

These are the link tags I use in my s-controls:

<link href="/sCSS/Theme2/default/elements.css" rel="stylesheet" type="text/css" />
<link href="/sCSS/Theme2/default/common.css" rel="stylesheet" type="text/css" />
<link href="/sCSS/Theme2/dStandard.css" rel="stylesheet" type="text/css" />
<link href="/sCSS/Theme2/allCustom.css" rel="stylesheet" type="text/css" />

cmarzillicmarzilli
Thanks I actually just got this to work by cut and pasting all the sample code at the bottom of the doc and hacking out all their stuff and inserting my own html.  If the doc is out of date it should be removed and/or updated.