Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to freeze text size?

Status
Not open for further replies.

zakd

Programmer
Dec 11, 2001
21
0
0
GR
I want to freeze text size. I meen that i don't want vititors change the font size from internet explorer.
Is something abous css?
 
Use this:
Code:
<html>
<style>
p.locked { 
  font-weight: bold; 
  font-size: 20pt;
  line-height: 14pt; 
  color: red;
  font-family: helvetica; 
  font-variant: normal;
  font-style: normal;
}
</style>
<body>
<p class=&quot;locked&quot;>
Your text here
</p>
</body>
</html>
-gerrygerry
Go To
 
I think you can also do this by setting font-size in pixels (px) instead of points (pt). The problem with this, supposedly, is that it does not print well- if that is really a problem.
 
Hi,

Whatever scheme you use, the visitor will always have the last say, unless your text is an image. User preferences in the browser can overwrite any css styling or just ignore it.
The user can even define his one style sheet.

Bye.
 
Hi,

r u using dreamweaver format? If yes, u can try this:-

1)Go to Select Text
2)Choose CSS Style
3)Select Edit Style Sheet
4)Select New
5)Click Redefine HTML Tag (it will specify to u which type u used.
6)Then just ur font size & click ok.
7)Finally click Done.

Hope can solve ur problem. bye-bye ;-)
 
Although you may want to rethink this idea, If &quot;Joe can't see too well&quot; goes to your site and can't read the smaller text, it wont do him much good.


rob --------------------------------------
Trying is the first step to failure
Homer Simpson
--------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top