/    Sign up×
Community /Pin to ProfileBookmark

CSS warning errors, but don’t know why.

I’m using this definition in an HTML file:

[code]
<style type=”text/css”>
.Tablature { font: normal normal 12px courier,monospace; }
</style>
[/code]

I have this element defined later in the script within a table cell:

[code]
<td valign=”top”>
<div class=”Tablature” id=”TabDisplay”></div>
</td>
[/code]

I write to the <div> element with document.getElementById(‘TabDisplay’).value = ‘Text information sent here’;

I’m getting these errors in my FireFox browser on an iMac:

[code]
————————————————————————————

Warning: Error in parsing value for property ‘font’. Declaration dropped.
Source File: file:///Volumes/USB20FD/BanjoTab.html

Line: 0
————————————————————————————

Warning: Expected ‘:’ but found ‘;’. Declaration dropped.
Source File: file:///Volumes/USB20FD/BanjoTab.html

Line: 0
————————————————————————————

[/code]

Does anybody have an idea what I’m doing wrong?
Thanks for any correcting comments.

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@ray326May 22.2007 — It really looks like it's seeing font; instead of font: or possibly monospace: instead of monospace; but I don't use the shorthand font style.
Copy linkTweet thisAlerts:
@JMRKERauthorMay 22.2007 — Thank you.

Per your suggestion I changed to:
<i>
</i>&lt;style type="text/css"&gt;
.Tablature { font-size: 12px; font-family: courier,monospace; }
&lt;/style&gt;

and have not yet had a problem.

I think I have learned a valuable lesson. Thanks again!
×

Success!

Help @JMRKER 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,
)...