Stuart's Blog
  • Home
  • Galleries
    • Star Trek Online
  • Liquid
    • Download
    • Screenshots
    • Changelog
    • Help
  • About
KEEP IN TOUCH
« Playing free Flash games on the PSP
» Add an Internet Explorer specific stylesheet

Firefox and pre font-size

Dec24
2008
Leave a Comment Written by Stuart Clark

My website stylesheet sets the overall font size to be 76.1%, this was working fine except for Firefox and the pre tag, it would render fine in Internet Explorer but Firefox would shrink the font size down. In order to get around this I used the following CSS:

pre, code {   font-size:  123.9%;   *font-size: 100.0%;}

The asterisk in front of the font-size command means it is strictly invalid CSS which is ignored by Firefox but is still parsed by Internet Explorer.

Related posts:

  1. Firefox add-ons
  2. Chromifying Firefox
Posted in CSS - Tagged Firefox
« Playing free Flash games on the PSP
» Add an Internet Explorer specific stylesheet

No Comments Yet

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

*

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

 
Download Liquid

Popular Posts

  • Assassin’s Creed save game location
  • Fix Windows Update error code 80240025
  • .NET charting with ZedGraph
  • How to disable real-time protection in Microsoft Security Essentials
  • Grand Theft Auto IV command line options
  • Map a network drive in Windows 7
  • Nokia 5230 codes
  • Xfire shortcut keys
  • Assassin’s Creed and Xfire
  • How to load the web page instead of the RSS feed summary in Thunderbird 3

Archives

  • July 2011
  • October 2010
  • September 2010
  • July 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • May 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • October 2008

EvoLve theme by Theme4Press  •  Powered by WordPress Stuart's Blog