Results 1 to 3 of 3

Thread: How to change font size using CSS in Firefox

  1. #1
    Join Date
    Feb 2009
    Posts
    78

    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

  2. #2
    Join Date
    May 2008
    Posts
    2,134

    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

  3. #3
    Join Date
    Apr 2008
    Posts
    2,276

    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.

Similar Threads

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

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,710,824,598.30949 seconds with 16 queries