/    Sign up×
Community /Pin to ProfileBookmark

Help formatting javascript content feed

Hello all,
I’m trying to add digg.com stories to my site & want to format it with css. If I add code like

[CODE]<STYLE TYPE=’text/css’>
FONT{color:#0000CC; font-size:x-small; font-family:sans-serif; background-color:#FFFFFF; font-weight:normal; text-decoration:none; }
</STYLE>[/CODE]

in the head, the rest of the text is affected but not that generated by the JS.

Digg says you can use CSS with the class names to customize the display…can someone clue me in?

Thanx!

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@dreamking11authorJan 24.2007 — Code with class name:

[CODE]<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>digg</title>
<style>p.digg{ color: blue; }
</style>
</head>

<body>
<html>
<body>
<p class="digg">this text is blue<script language="JavaScript" src="http://digg.com/diggjs/front/tech_news/16" type="text/javascript"></script>
</p>
</body>

</html>[/CODE]


again the regualar text is effected but not the JS ?
×

Success!

Help @dreamking11 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 4.29,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...