Solved

fixed font size

Posted on 2002-04-10
4
197 Views
Last Modified: 2013-12-03
I want to keep the font size on my home page fixed. No matter what size visitor has set in view>>text size, it should only show the size of fonts I have defined.  Thanks.
0
Comment
Question by:tahirr
  • 2
4 Comments
 
LVL 19

Accepted Solution

by:
webwoman earned 75 total points
ID: 6932276
Set up a style sheet, define the fonts in pixels. Use the styles you define in the style sheet.

If they REALLY want to override your styles they can, but just changing the text size the way you normally would doesn't have any effect.
0
 
LVL 8

Expert Comment

by:klykken
ID: 6938852
tahir,

By using the property !important, you're fixing the size of the text as far as you can. As webwoman said, the user will always be able to change the text of the page, if they *really* want to and know how. This way is pretty safe though:

H3 {font-size: 16px ! important;}

--
klykken
0
 

Author Comment

by:tahirr
ID: 6945391
Hi webwoman & klykken. Thanks for your suggestions.  I tried them but still able to change font size by going to view>text size. What I want to achieve is at http://www.projectseven.com/ You can not change font size by view>text size for their pages.  Thanks.
0
 
LVL 8

Expert Comment

by:klykken
ID: 6945429
tahirr,
this will work on browsers that supports css. Even works on NS 4.7.

Which browser are you testing this on?
The way webwoman explained this to you is exactly how Projectseven does it.
--
klykken

0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now