SitePoint Sponsor |
|
User Tag List
Results 1 to 9 of 9
Thread: CSS format for fonts
-
May 8, 2001, 17:47 #1
- Join Date
- Feb 2001
- Location
- newport news
- Posts
- 10
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
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.
-
May 8, 2001, 18:01 #2
- Join Date
- May 2001
- Location
- View Ridge
- Posts
- 692
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
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.
-
May 9, 2001, 11:35 #3
- Join Date
- May 2001
- Location
- Florida
- Posts
- 22
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
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
-
May 9, 2001, 12:16 #4
- Join Date
- Oct 2000
- Location
- Nashvegas Baby!
- Posts
- 7,845
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
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
-
May 10, 2001, 10:58 #5
- Join Date
- Jan 2001
- Location
- Milton Keynes, UK
- Posts
- 1,011
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
You can get TopStyle Lite 2 for free from www.bradsoft.com.
-
May 10, 2001, 14:18 #6
- Join Date
- Aug 2000
- Location
- Thailand
- Posts
- 4,810
- Mentioned
- 1 Post(s)
- Tagged
- 0 Thread(s)
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
-
May 11, 2001, 08:35 #7
- Join Date
- Feb 2001
- Location
- newport news
- Posts
- 10
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
The Topstyle editor
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.
-
May 11, 2001, 08:43 #8
- Join Date
- Oct 2000
- Location
- Nashvegas Baby!
- Posts
- 7,845
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
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
-
May 12, 2001, 22:33 #9
- Join Date
- Jul 2000
- Location
- Singapore
- Posts
- 2,103
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
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