Re: style sheet works in only some browsers

by "dale" <dale(at)daleznet.com>

 Date:  Tue, 21 Jan 2003 11:41:00 -0600
 To:  <chip.wiegand(at)simrad.com>,
<hwg-techniques(at)hwg.org>
 References:  simrad
  todo: View Thread, Original
Chip,

Don't know if this helps, but I always put a space before and after the {
and leave off the trailing ;

For instance:

p  { font-weight: normal;  font-size: medium; font-face: Verdana, Arial;
color: #000 }

not

p {font-weight: normal;
    font-size: medium;
          font-face: Verdana, Arial;
          color: #000;}

Just my .02
dale



----- Original Message -----
From: <chip.wiegand(at)simrad.com>
To: <hwg-techniques(at)hwg.org>
Sent: Tuesday, January 21, 2003 11:15 AM
Subject: style sheet works in only some browsers


> I am helping a friend build a web site using an external style sheet. The
> web pages load
> fine (read the style sheet) in Mozilla and Netscape, but IE refuses to
> read the external linked
> style sheet. The  style sheet is in the same directory as the web pages.
> Here is my linking code-
>
> <link rel="Primary StyleSheet" href="stylesheet.css" type="text/css"
> title="Primary site style sheet" media="screen" />
>
> The style sheet is pasted at the bottom of this message.
> Any ideas why IE won't read the style sheet?
> Thanks,
> --
> Chip Wiegand
> Computer Services
> Simrad, Inc
> www.simradusa.com
> chip.wiegand(at)simrad.com
>
> "There is no reason anyone would want a computer in their home."
>      --Ken Olson, president, chairman and founder of Digital Equipment
> Corporation, 1977
>  (Then why do I have 8? Somebody help me!)
>
>
> /* Body definition */
> body { background: url(yellow-bg.jpg) white;
>        background-repeat: repeat-y ! important }
>
> /* A href (anchor) tags */
> a {text-decoration: none;
>    color: red;}
>
> /* Format of the menu headings */
> .menutitle {font-weight: bold;
>         font-size: small}
>
> /* Format for List Items */
> li {font-size: small}
>
> /* Format for the body title for each page */
> .title {font-weight: bold;
>         font-size: medium;}
>
> /* Format for the text in the logo header */
> .logo-lg-text {font-face: Georgia;
>                                   font-size: 36pt;
>                                   font-weight: bold;
>                                         color: #ff0000;}
> .logo-sm-text {font-face: Book Antiqua;
>                                      font-size: large;
>                                         font-weight: bold;
>                                         font-style: italic;
>                                         color: #ff0000;}
>
> /* Format for the text in the body of all pages */
> p {font-weight: normal;
>    font-size: medium;
>          font-face: Verdana, Arial;
>          color: #000;}
>

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA