Solved

fixed font size

Posted on 2002-04-10
4
210 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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Widget display 6 83
Video Not Showing 8 101
Adobe Acrobat Pro: how to copy style? 2 115
one notepad file content suddenly garbled.. (other notepads are OK in same folder) 3 80
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 …
Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

828 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