Results 1 to 7 of 7

Thread: Fonts in HTML

  1. #1
    only the finest beef
    Join Date
    Nov 2003
    Posts
    1,175
    Thanks
    4
    Thanked
    0 times in 0 posts

    Fonts in HTML

    Please queue up to tell me what a novice numpty I am.....

    I've made an asp site and haven't done any text formatting - how can I set the default font for each page; can I use css?

  2. #2
    Goat Boy
    Join Date
    Jul 2003
    Location
    Alexandra Park, London
    Posts
    2,428
    Thanks
    0
    Thanked
    0 times in 0 posts
    body {
    font-family: Arial, Helvetica, sans-serif;
    }
    "All our beliefs are being challenged now, and rightfully so, they're stupid." - Bill Hicks

  3. #3
    only the finest beef
    Join Date
    Nov 2003
    Posts
    1,175
    Thanks
    4
    Thanked
    0 times in 0 posts
    cheers mate

    <goes and wears dunce hat in the corner>

  4. #4
    HEXUS.net Webmaster
    Join Date
    Jul 2003
    Location
    UK
    Posts
    3,108
    Thanks
    1
    Thanked
    0 times in 0 posts
    if you use the shorthand notation you can set size, style and family in 1 go e.g.
    body {
    font: normal 11px Arial, Helvetica, sans-serif;}

    The normal applies to the style e.g. it could have been italic instead.

    Alternatively you can do them individually e.g.
    body {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: normal;
    font-style: normal
    font-size: 11px}

    The weight could be bold instead, etc. Both work, it's just the first one is less for the user to download

  5. #5
    Senior Member Kezzer's Avatar
    Join Date
    Sep 2003
    Posts
    4,863
    Thanks
    12
    Thanked
    5 times in 5 posts
    I prefer to use external style sheets unless the style is specific to that page. It makes it much much easier in the long run.

  6. #6
    Member
    Join Date
    Feb 2004
    Location
    Aston University
    Posts
    53
    Thanks
    0
    Thanked
    0 times in 0 posts
    Stupidity isn't necessarily your fault Angus!

  7. #7
    Senior Member Kezzer's Avatar
    Join Date
    Sep 2003
    Posts
    4,863
    Thanks
    12
    Thanked
    5 times in 5 posts
    check out http://www.w3schools.com for more info. That's where i learnt everything about HTML and CSS

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 10
    Last Post: 09-01-2004, 07:19 PM
  2. Moving on from HTML...
    By TomWilko in forum Software
    Replies: 21
    Last Post: 23-10-2003, 10:17 PM
  3. HTML woes
    By Nemeliza in forum Software
    Replies: 6
    Last Post: 17-10-2003, 10:05 PM
  4. Replies: 1
    Last Post: 14-08-2003, 03:32 PM

Posting Permissions

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