Re: Style Sheets

Hi Wira,

    Your code looks fine

    When I pasted your style sheet into "junk.css"and ran the following HTML
file on both IE4 and Com4, itworked perfectly (although of course Com 4
doesnot recognise "hover")

Is it possible that you are not using the LINK tag correctly.


<HTML>
<HEAD>

<LINK REL=STYLESHEET TYPE="text/css" HREF="junk.css" TITLE="Style">
<STYLE></STYLE>
</HEAD>
<BODY>
<P CLASS="kolom">some text with a <A HREF="">link</A>
</BODY>
</HTML>

Frank

Frank Boumphrey
XML and style sheet info at Http://www.hypermedic.com/style/index.htm

----Original Message-----
From: Wira "AllenWest" Julianto <jets@indo.net.id>
To: www-html@w3.org <www-html@w3.org>
Date: Monday, June 29, 1998 10:51 PM
Subject: Style Sheets


>i got a problem with style sheets. I make a style sheets by using External
>Style Sheets metode. like this:
>
>P.kolom          {text-align: left; margin-left:.10in; margin-right:.10in}
>A:link           {color: red}
>A:visited        {color: purple}
>A:active         {color: black}
>A:hover          {color: blue; text-decoration: none}
>A                {text-decoration: underline}
>A:hover.kolom    {color: gold}
>DIV.barhitam A:link    {color: silver}   /* link warna perak pada kolom
>hitam */
>DIV.barhitam A:visited {color: aqua}     /* link yang pernah di kunjungi
>warna biru muda pada kolom hitam */
>DIV.barhitam A:active  {color: yellow}   /* link aktif warna kuning pada
>kolom hitam */
>DIV.barhitam A:hover   {color: gold}     /* link warna emas jika pointer
>mouse di taruh pada mouse pada kolom warna hitam */
>DIV.barhitam A         {text-decoration: none} /* link tanpa garis bawah
>pada kolom hitam */
>
>then i save it to webcorner.css, and the style sheets work perfectly,
but...
>if I add tag <style type="text/css"> or <style> and close with </style>,
the
>style sheets doesn't work. So what's wrong ?
>
>Thanks :)
>
>                                Wira Julianto
>====================================================================
>Web Corner  http://www.geocities.com/SiliconValley/Heights/5618/
>Games Mania Indonesia http://www.indonesia-undernet.org/gmi/
>====================================================================
>
>

Received on Monday, 29 June 1998 23:22:57 UTC