Recent Posts
- (02/24) Calling an Element from a Helper TAGS:CakephpWeb ProgrammingUsageTutorialExample
- (10/14) Forcing A Single Join in CakePHP PaginationTAGS:CakephpCakephp 13DatabaseErrorsHabtmMysqlMssqlWeb ProgrammingUsage
- (08/11) Inserting NOW() into MySQL Using CakePHPTAGS:CakephpDatabaseMysqlMssqlWeb ProgrammingUsage
- (08/07) Best PaginateCount for CakePHP - with Group By SupportTAGS:CakephpBehaviorsWeb ProgrammingUsageDatabaseExampleMysqlHabtmHack
- (04/03) CakePHP Error Messages Not Showing on FormTAGS:CakephpCakephp 13Web ProgrammingErrorsUsage
- (02/06) Sorting Paginated Results Using a Related Model Field in CakePHPTAGS:CakephpWeb ProgrammingUsageExample
- (11/02) Changing CakePHP's Model useTable on the FlyTAGS:CakephpWeb ProgrammingMysqlDatabaseExampleTutorial
- (10/18) The Funniest Error Message Ever - Thank You EclipseTAGS:EclipseWeb ProgrammingErrorsHumorWindowsUsageSoftwarePhpCakephp
Subscribe to my feed
MainelyDesign.com Blog
CSS Small-Caps Working in IE Not in Firefox
Posted on 09/24/2009 at 11:03 am by Kevin Wentworth
Viewed 2,287 times | 0 comments
Another IE/FF Inconsistancy?
I thought I had ran into an interesting (and new) CSS bug. I was using Trebuchet MS as my font for my H2s. It was rendering perfect in Internet Explorer but not in Firefox. In Firefox, all caps. In IE, small-caps. What gives?

C Stands for Cascading...
It turns out that I hadn't specifically told the H2 to display text as normal. It was inheriting a style="text-transform: uppercase" from another CSS style definition. In IE, I guess font-variant trumps text-transform. In Firefox, it's the other way around.
text-transform Beats font-variant in FF
If small-caps isn't displaying properly in Firefox, chances are you've defined a "text-transform: uppercase" previously to that element. Just add that to the style and you'll be cross-browser compatible again!
- div#topPromo h2 {
- margin: 30px 0 0 400px;
- padding: 0;
- font-family: "Trebuchet MS", Trebuchet, Helvetica, Arial, sans-serif;
- font-size: 3em;
- font-weight: bold;
- font-variant: small-caps;
- text-transform: none; //override a text-transform:uppercase
- color: #022fae;
- }
Cheers,
-Kevin Wentworth
Tags for CSS Small-Caps Working in IE Not in Firefox
Css | Web Design | Firefox | Example | Internet Explorer | Ie
Comments for this Posting
No comments. Be the first to post a reply.
Sorry, comments are closed for this posting.
Please Email Kevin if you have any questions. Thanks!
