Go Back   TechArena Community > Technology > Technology & Internet
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , , ,

Sponsored Links



How to change font size using CSS in Firefox

Technology & Internet


Reply
 
Thread Tools Search this Thread
  #1  
Old 30-06-2009
Member
 
Join Date: Feb 2009
Posts: 64
How to change font size using CSS in Firefox

hi friends,

In my website, I cannot change font settings using CSS when I open it in Mozilla Firefox. However, it allows me to perform all necessary font settings in Internet Explorer using CSS, it works quite nicely with IE. But in Firefox, it ignores the font size settings. How can I change font size using CSS in Firefox ?
Can anybody please provide necessary ideas or suggestions regarding this.... thanks
Reply With Quote
  #2  
Old 30-06-2009
johnson22's Avatar
Member
 
Join Date: May 2008
Posts: 2,107
Re: How to change font size using CSS in Firefox

Cascading Style Sheets (CSS) gives different results in different browsers even in different versions. Fonts appear smaller in Firefox than Internet Explorer. The ideal solution is to use Internet Explorer readable conditional comments which can be read only by IE, so make separate stylesheets for different browsers and then connect them accordingly.

Best of Luck
Reply With Quote
  #3  
Old 30-06-2009
Techno01's Avatar
Member
 
Join Date: Apr 2008
Posts: 2,269
Re: How to change font size using CSS in Firefox

Initially set an overall font-size for your site by defining a base font-size in the body tag of your css file. Then atleast the base size will be the same.

Browser sometimes behave weird. Because of browser weirdness, when you specify 100%, it is sometimes interpreted differently by different browsers, so in your style sheet use:
body {font-size:100.01%;}

Then you can define your font sizes for your page.
If you want to define all your <p> tags as a fixed size: p {font-size:11px;}
So for roughly 11pt font I'll define the <p> tag: p {font-size:0.76em;}

The important thing here is to define the base size in the css body, that way you get rid of some unpredictable cross-browser base sizes.
Reply With Quote
Reply

  TechArena Community > Technology > Technology & Internet


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to change font size using CSS in Firefox"
Thread Thread Starter Forum Replies Last Post
How to change font size of W300i %Achan Portable Devices 4 01-02-2011 07:33 AM
Change Web feed font size for C6 The-Don Portable Devices 5 11-09-2010 06:38 PM
Change font size in firefox 3.5 Akul Technology & Internet 5 30-01-2010 06:42 AM
Kindle change font size Jaimenacho Portable Devices 5 13-12-2009 07:29 AM
Limiting font size in Firefox. Philip Neri Windows Software 7 25-10-2008 06:56 PM


All times are GMT +5.5. The time now is 06:32 AM.