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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

fonts.......

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I'm new to this and to style sheets. is there a way to call a font in the <style> part that'll carry thru for the whole page? Like to avoid repeating the call with tables and the like...
 
Sam,

Code:
<html>
<head>
<style type=&quot;text/css&quot;>
BODY{
 background-color:yellow;
 color:purple;
 font-size:8pt;
 font-family:&quot;Verdana,Tahoma,Arial&quot;;
 font-weight:Bold;
}
TABLE{
 color:blue;
 font-size:8pt;
 font-family:&quot;Verdana,Tahoma,Arial&quot;;
 font-weight:Bold;
}
</style>
</head>
<body>
This is a test
<table><tr><td>This is only a test</td></tr></table>
OK?
</body>
</html>

You seem to have to define the body and table separately. You could also define a class .pagestyle (or something) that you can call as such <body class=&quot;pagestyle&quot;> or <table class=&quot;pagestyle&quot;>. This will work on most any tag but must be specified. From the example you see that you can define styles to tags.

Hope this helps get you started, [sig]<p>Rob<br><a href=mailto:robschultz@yahoo.com>robschultz@yahoo.com</a><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
"Focus on the solution to the problem,<br>
not the obstacles in the way."<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top