SitePoint Sponsor

User Tag List

Results 1 to 9 of 9

Hybrid View

  1. #1
    SitePoint Member
    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.

  2. #2
    .net install meltdown
    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.

  3. #3
    SitePoint Member tscratch's Avatar
    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

  4. #4
    SitePoint Wizard creole's Avatar
    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

  5. #5
    SitePoint Wizard
    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.

  6. #6
    SitePoint Wizard silver trophy TheOriginalH's Avatar
    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

  7. #7
    SitePoint Member
    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.

  8. #8
    SitePoint Wizard creole's Avatar
    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

  9. #9
    The Hiding One lynlimz's Avatar
    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.
    hey creole,

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •