W3C home > Mailing lists > Public > www-style@w3.org > May 2001

Pixels in Style Sheet

From: Julie Johnston <Johnst@memo.acehardware.com>
Date: Tue, 1 May 2001 15:05:09 -0500
Message-ID: <7B3739801680D411BE15009027DCD24B748050@snapdragon.acehardware-aceonline.com>
To: "'www-style@w3.org'" <www-style@w3.org>, "'www-html-d@w3.org'" <www-html-d@w3.org>, "'frontpage-users@webcom.com'" <frontpage-users@webcom.com>
Could you please let me know if it is acceptable to use pixels when
referring to font size in a style sheet?  Here's a copy of a style sheet
that I'm trying to incorporate, but I'm running across a problem where the
style sheet doesn't always override the layout of the previous style sheet.
Also, is it necessary to list so many font types in the body area of the
style sheet?  Thanks for your help.

<style type="text/css">
           body { font-family:arial,tahoma, verdana, helvetica, times new
roman; margin-left:0px; margin-right:0px; margin-top:0px; margin-bottom:0px;
color:#000000; }
     p,td,li,dl { font-size:13px; font-weight:normal; margin-left:10px; }
        .header { font-size:16px; font-weight:bold;   margin-left:10px; }
     .statusbar { font-size:11px; font-weight:bold;   padding-left:5px;
margin-top:5px; }
         A:link { font-size:11px; color:#0000AA; font-weight:bold;
cursor:hand;  }
      A:visited { font-size:11px; color:#0000AA; font-weight:bold;
cursor:hand; }
        A:hover { font-size:11px; color:#DE2028; font-weight:bold;
cursor:hand; }
   .lightenCell { font-size:12px; color:#FFFFFF; font-weight:bold;
cursor:hand; background:#0000AA; border-right:1px #000000 solid;
text-decoration:none; text-align:center;}
   .MenuButtons { font-size:12px; font-weight:bold;  cursor:hand;
background:#FFD75A; border-right:1px #000000 solid; text-decoration:none;
       .MenuBar { border-left:1px 0000AA solid; border-right:1px 0000AA
solid; border-top:1px 0000AA solid; border-bottom:1px 0000AA solid;
background:#FFD75A; }
Received on Tuesday, 1 May 2001 16:06:09 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:57 UTC