Solved

CSS in Firefox renders extra bold within <span> element

Posted on 2013-05-16
3
507 Views
Last Modified: 2013-05-16
On this website:
http://partnersdesign.net

After five seconds, the intro slide goes away and a Javascript counter appears. It is inside this element:

<span id="cntdwn"></span>

I got the counter Javascript online from someone else, but as far as I can tell it shouldn't be applying any of its own styles.

In all browsers, it looks fine, but in Firefox it is extremely bold. I tried adding this extra CSS, to no avail:

span#cntdwn{color:#000;font-weight:normal;letter-spacing:0.05em;white-space:nowrap;}

If anyone could help me understand why this is happening, I would greatly appreciate it.

Thank you!
0
Comment
Question by:bbdesign
  • 2
3 Comments
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 39173278
Line 13 of the script is:

return "<b>" + s + "</b>";

Notice the Bold tags?  Since they are inline, they override the CSS.  It does the same thing in IE8, Firefox and Chrome.
0
 

Author Comment

by:bbdesign
ID: 39173448
Oh my, I can't believe I missed that. Thanks for checking!
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39173485
You're welcome, glad to help.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
CSS Columns on Slider Mobile 4 51
Text in block not displaying properly 2 33
P tag not forcing line space 2 23
A simple Float not working. 5 7
CSS3 Custom checkboxes This article shows how to style the checkbox form element using only CSS. Works in: Chrome, FF, Safari, Opera, IE9+ Uses modernizr.js to check for :checked pseudo class, falling back to plain old checkboxes (IE8 and bel…
When writing CSS, there are a few simple rules that will make your life easier.    1. Using ‘* {box-sizing:border-box;}’. Using this will wrap all your elements in a nice little compact box-model that will give you the width you want, like so... …
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now