Forum Moderators: mack

Message Too Old, No Replies

How to overide a browsers default css

To use my text styles.

         

new2this

8:50 pm on Jan 23, 2005 (gmt 0)

10+ Year Member



I noticed when I go to certain websites and I change the text setting in my web browser from medium to largest the text on the website does not change how do they stop their text from enlarging and what is the most popular text setting for web surfers I would like to know so that I can incorporate these features into my website design

ara818

7:41 am on Jan 24, 2005 (gmt 0)

10+ Year Member



As far as I know, this is a browser bug.

Most commonly, Internet Explorer is unable to resize text that is sized in pixels in CSS.

i.e.

body {
font-size: 12px;
}

Of course, the above is gibberish to you if you don't know what CSS is. Luckily, there are A TON of sites out there with information and tutorials on CSS.

Matt Probert

8:07 am on Jan 24, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I noticed when I go to certain websites and I change the text setting in my web browser from medium to largest the text on the website does not change how do they stop their text from enlarging

The web site designer has specified, within the web page, a fixed text size in pixels.

what is the most popular text setting for web surfers I would like to know so that I can incorporate these features into my website design

Don't do it. Everyone is different. The best advice is to use relative text sizes, so your headings appear larger than your main body text for example. In this way, if a user changes their text size to suit their needs, your site will still appear with larger text for headings and wherever you want it.

Relative text sizes are often defined in "em"s.

Matt