Solved

CSS in Firefox renders extra bold within <span> element

Posted on 2013-05-16
3
535 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
GET error with Font Awesome 3 50
2 separate CSS animations 2 38
Hiding Adsense on Mobile Devices 2 77
Bootstrap best practice - handling navigation menu at 770 ish width 6 51
Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer…
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…

734 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