SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Evangelist AsianGirl's Avatar
    Join Date
    Oct 2003
    Location
    U.S.A
    Posts
    446
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    need help with CSS

    i have a lot of
    <font color="black" face="Verdana,Geneva,Georgia,Arial" size="1"> on my souce code, how do i create CSS for it to make it short ??

    please help

  2. #2
    SitePoint Zealot
    Join Date
    Oct 2003
    Location
    USA
    Posts
    173
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    http://www.htmlhelp.com/reference/cs...-tutorial.html
    You'd want something like this defined in the head of your html page or in a .css file:
    .btext {
    font-family: Verdana,Geneva,Georgia,Arial;
    font-size: medium;
    font-weight: normal;
    }
    .
    2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
    2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
    2 | 3 | 4 | 5 | 6 | 7 | 8 | 9

  3. #3
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Using shorthand would be the most efficient way to do it:
    Code:
    span {
      font: x-small Verdana, Geneva, Arial, sans-serif;
      color: #000; /*black*/
    }
    HTML Code:
    <span>Your text</span>


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
  •