/    Sign up×
Community /Pin to ProfileBookmark

CSS not working when called externally in to span tag

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

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@A1ien51Dec 18.2006 — And does any of the other styles on the page work? If not, you are probably linking to the file wrong.

Eric
×

Success!

Help @suresh_hv spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.24,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...