css and changing text size

  Sturmey 21:25 19 Oct 2004
Locked

I often use the option in internet explorer to enlarge text on a site by going to View/Text Size or using the scrolly wheel on my mouse and holding down the Ctrl. However when I make a web page using css nothing happens when I change the text size.

  harristweed 12:17 20 Oct 2004

If you fix the size of text using CSS, this will 'override' the browser default and lock the size.
i.e


.maintext

{

color: #00008B;

font-size: 10px;

}


If you set the size as a percentage using CSS, this can still be resized.

i.e.

.maintext

{

color: #00008B;

font-size: 80%;

}

  Sturmey 15:56 20 Oct 2004

Thanks for the tip most useful :)

This thread is now locked and can not be replied to.

Elsewhere on IDG sites

Fujitsu Lifebook P727 laptop review

Microsoft Paint set to die after 32 years

Mac power user tips and hidden tricks

Comment désactiver la saisie intuitive et paramétrer votre clavier ?