Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


fixed font size

Posted on 2002-04-10
Medium Priority
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.
Question by:tahirr
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 19

Accepted Solution

webwoman earned 300 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.

Expert Comment

ID: 6938852

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;}


Author Comment

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.

Expert Comment

ID: 6945429
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.


Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

618 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