SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: BASEFONT tag

  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2000
    Posts
    62
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    From everything I have read, the BASEFONT tag should work in Netscape. But i can't get it to work. It works fine in IE, so what's the deal? I've tried placing the tag in both the HEAD and BODY, as the books I have give different info. Ideas?

  2. #2
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Could you give a sample URL to look at or post some sample code?

    ------------------
    Wayne Luke - Sitepoint Moderator/Internet Media Developer
    Digital Magician Studios - Making Magic with Web Applications
    wluke@digitalmagician.com

  3. #3
    SitePoint Enthusiast
    Join Date
    Mar 2000
    Posts
    62
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here is the code:
    <HTML>
    <HEAD>
    <TITLE>Advanced Record Storage - Homepage</TITLE>
    <BASEFONT color="#FFFFFF" face="ARIAL, HELVETICA">
    </HEAD>
    <BODY bgcolor="#000000">
    <CENTER>
    <H1>Advanced Record Storage</H1>
    <HR color="#FF0000" size="2" noshade width="100%">
    </CENTER>
    </BODY>
    </HTML>

    There was also additional text after the HR that was plain text, but for the sake of space and because this is an in progress page, I've left it out. None of the text showed up in Netscape. Supposed to be white text on black bg.

  4. #4
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    AS far as I know in the HTML 4.0 specification. The Basefont tag only allows you to set the size (see The Bare Bones Guide to HTML).

    Now the problem is that the FONT tag was deprecated. This means its only included for backwards compatibility. New browsers do not have to support it. The W3C recommends using CSS instead.

    Add the following code to your head section:
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">code/font><HR><pre>
    &lt;style&gt;
    body { background-color:"#000000"; color:"#FFFFFF"; font-face:"Arial","Helvetica","san-serif";}
    &lt;/style&gt;
    [/code]

    Also change your body tag to include "Text='#FFFFFF'" for backwards compatibility with the version three browsers.

    For more information on the FONT and BASEFONT tags check out W3C HTML 4.0 Specification - FONT modifiers

    ------------------
    Wayne Luke - Sitepoint Moderator/Internet Media Developer
    Digital Magician Studios - Making Magic with Web Applications
    wluke@digitalmagician.com

    [This message has been edited by wluke (edited June 21, 2000).]


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
  •