Can Cascading Style Sheets be used to identify font attributes for a Hypertext Markup Language document but only for those fonts not enclosed within <table></table> tags.
| SitePoint Sponsor |
Can Cascading Style Sheets be used to identify font attributes for a Hypertext Markup Language document but only for those fonts not enclosed within <table></table> tags.




Sounds like you want the text within a table to be a different font than text outside the table?
You can use CSS to specify the font within the <td> tag:
td
{
font: 12px verdana, helvetica, san serif;
}
You could have different fonts in different <td>'s by using classes:
td.times
{
font: 12px times new roman;
}
Then add class="times" in your <td> tag:
<td class="times">
This is a brief summary, CSS is a powerful tool. Browser support of CSS varies though.
My fav resource for CSS is:
http://www.eskimo.com/~bloo/indexdot/css/index.html.
Homesite comes w/ Top Style which is a pretty good CSS tool. I'm not sure where to get it as a standalone.
Hope this helps (?)
Last edited by isotope235; May 13, 2001 at 02:30.
I use style sheets to control the fonts on my site. I have found that it's better to use long hand when marking up though
font-family:Verdana;
font-size:10pt;
etc. even though I only use 2 fonts and 2 sizes i like to cover all the bases to make sure i get the best cross support i can. That's just my opinion though.
--
Eric





yes...I think that some browsers do not recognize shorthand. I am also pretty sure that the W3c recommends using the exploded stylesheet method of longhand.
Adobe Certified Coldfusion MX 7 Developer
Adobe Certified Advanced Coldfusion MX Developer
My Blog (new) | My Family | My Freelance | My Recipes





You can get TopStyle Lite 2 for free from www.bradsoft.com.
Cheers for the link Shane, been looking for a css editor other than notepad
H
~The Artist Latterly Known as Crazy Hamster~
922ee590a26bd62eb9b33cf2877a00df
Currently delving into Django, GIT & CentOS
Thanks for all the help. The Top Style editor does save alot of time. Now do CSS beat out creating Templates such as in Dreamweaver or Frontpage or is it about the same.





CSS is not really a replacement for templates. They are more for working hand-in-hand with each other.
Adobe Certified Coldfusion MX 7 Developer
Adobe Certified Advanced Coldfusion MX Developer
My Blog (new) | My Family | My Freelance | My Recipes





hey creole,Originally posted by creole
yes...I think that some browsers do not recognize shorthand. I am also pretty sure that the W3c recommends using the exploded stylesheet method of longhand.
i use shorthand properties in my IE and NS style sheets and it works very very well.
the reason why it doens't work as certian properties for netscape 4..like the padding would cause problems...even longhand mode causes the same problems. so technically, its not a difference.
shorthand works in opera and mozilla too.
"Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."
-- Albert Einstein
Bookmarks