www.webdeveloper.com
Results 1 to 7 of 7

Thread: controlling font pt

  1. #1
    Join Date
    Feb 2003
    Posts
    21

    controlling font pt

    how do i control pt. size using css ???

    i'm trying to take what i've been reading on here and use it starting with the use of css's i've never used them to control such specific items though so i would appreciate the help

    here's the code i'm using


    a.cream:link { font-family:Arial; font-size:12pt; text-decoration:underline; color: #FFCCCC}

    a.cream:visited { font-family:Arial; font-size:12pt; text-decoration:underline; color: #FFCCCC}

    a.cream:hover { font-family:Arial; font-size:12pt; text-decoration:underline; font-weight:bold; color: #FFFFCC; background-color: #990000}

    a.cream:active { font-family:Arial; font-size:12pt; text-decoration:underline; font-weight:bold; color: #FFFFCC; background-color: #990000}
    Last edited by Pyrohavoc; 03-02-2003 at 08:46 PM.

  2. #2
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    Better off not using pt size but px or % (best)

    Personal website http://www.ryanbrill.com/
    Business website: http://www.infinitywebdesign.com/
    TypeSpace http://www.typespace.org/

    I reject your reality and substitute it with my own!

  3. #3
    Join Date
    Feb 2003
    Posts
    21
    can you elaborate on that a little more???

  4. #4
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    Something like this, which will be a bit bigger than the default font size:

    Code:
    <style type="text/css">
    a.cream:link { font-family:Arial; font-size:120%; text-decoration:underline; color: #FFCCCC} 
    
    a.cream:visited { font-family:Arial; font-size:120%; text-decoration:underline; color: #FFCCCC} 
    
    a.cream:hover { font-family:Arial; font-size:120%; text-decoration:underline; font-weight:bold; color: #FFFFCC; background-color: #990000} 
    
    a.cream:active { font-family:Arial; font-size:120%; text-decoration:underline; font-weight:bold; color: #FFFFCC; background-color: #990000}
    </style>

    Personal website http://www.ryanbrill.com/
    Business website: http://www.infinitywebdesign.com/
    TypeSpace http://www.typespace.org/

    I reject your reality and substitute it with my own!

  5. #5
    Join Date
    Feb 2003
    Posts
    21
    damn i wasn't quick enough.....tried to reply before you did but uh i figured out what you meant ... thanks for the help

  6. #6
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    Originally posted by Pyrohavoc
    damn i wasn't quick enough
    lol Your welcome...

    Personal website http://www.ryanbrill.com/
    Business website: http://www.infinitywebdesign.com/
    TypeSpace http://www.typespace.org/

    I reject your reality and substitute it with my own!

  7. #7
    celebguy_dv Guest

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles