HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 28th, 2000, 04:21 PM
acalub acalub is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: Fair Oaks, CA, USA
Posts: 1 acalub User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Is there any way to set a font size that cannot be changed by the user?

Reply With Quote
  #2  
Old July 28th, 2000, 08:37 PM
firepages's Avatar
firepages firepages is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2000
Location: Perth West Australia
Posts: 741 firepages User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
<html>
<style>
.yourfont{color:black;font-size:15pt;font-family:arial,verdana,serif;}
</style>
<body>
<font class="yourfont">hello in black 15pt arial</font>
</body>
</html>

This will be the same in any CSS browser (most are) unless the client turns off CSS in their preferences , which is unlikely.

------------------
Simon Wheeler
FirePages -DHTML/PHP/MySQL

Reply With Quote
  #3  
Old July 29th, 2000, 11:08 PM
billyo billyo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 114 billyo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
I could be mistaken, but I thought that in order to make a font size absolute the units had to be "px" and not "pt"?

Reply With Quote
  #4  
Old July 31st, 2000, 04:48 PM
yduvoid yduvoid is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 51 yduvoid User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
For cascading style sheets, you can set your font size with px, pt, em, ex, pc, in, mm, or cm. For tags you only use number values which represents pt.

Reply With Quote
  #5  
Old August 1st, 2000, 11:48 AM
JonLed JonLed is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2000
Location: Indiana
Posts: 614 JonLed User rank is Corporal (100 - 500 Reputation Level)JonLed User rank is Corporal (100 - 500 Reputation Level)JonLed User rank is Corporal (100 - 500 Reputation Level)JonLed User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 h 49 m 49 sec
Reputation Power: 9
CSS's turn into **** when you start putting text in tables.

Reply With Quote
  #6  
Old August 1st, 2000, 11:55 AM
yduvoid yduvoid is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 51 yduvoid User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
JonLed, not really, it's always best to have a seperate CSS file to control most of the features for the page, so basically you just need to add a class or a ID attribute to the tags. It's always a mess and a pain in the *** if you include the style attribute to the tags. If you have a site with 300 pages and you want to change the font or background colour for all of them, just simple make one change in the CSS file.

------------------

***************
Yanik!
Edmonton, AB

Reply With Quote
  #7  
Old August 2nd, 2000, 12:46 AM
firepages's Avatar
firepages firepages is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2000
Location: Perth West Australia
Posts: 741 firepages User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
jonled

<table....etc <td class="yourclass"> etc

end of turning to **** problem. (assuming your HTML code is super-valid for netscape)

------------------
Simon Wheeler
FirePages -DHTML/PHP/MySQL

Reply With Quote
  #8  
Old August 8th, 2000, 04:26 PM
Physics Physics is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Posts: 4 Physics User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
You can redefine your <TD> (or <FONT>, etc.) in your main .css to have specific font attributes, as above mentioned. That will cascade the font you want throughout your document cleanly. Then define classes like .bold which contain your desired extra characteristics, so that if you want text in a cell to be bold, use CLASS="bold" and your font face/size/etc. will be inherited from the cell itself.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > Font size


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway