Hi Guys,
I need help from you guys,
Following is the code in which the css part(scoredisplay) works if the css code is kept in the same HTML page…when I place the css code externally,the css style is not applied to the text……. Is is not working bcos it is in <span> tag…. orelse what???? . I kindly need your help…..
<link href=”../css/content.css” rel=”stylesheet” type=”text/css”>
<style type=”text/css”>
.scoredisplay{
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:14pt;
color:#FF0000;
font-weight:bold;
}
</style>
<body>
<div class=”pagetitle”>Assesment Score</div><br>
<div class=”pagecontent”>The Final score is displayed for you.</div>
<script language=”JavaScript” type=”text/javascript”>
document.write(“<div class=’pagecontent’> your score is : “);
document.write(“<span class=’scoredisplay’>” + top.a + “</span></div>”);
</script>
top.a is a variable which has the score that has to be displayed… when the Css is called externally the css style is not getting applied…..
Thanks…
Suresh.H.V