CSS & Dreamweaver - resend

by "Henry John Boleszny" <henryb(at)seaeagle.aunz.com>

 Date:  Wed, 21 Feb 2001 15:05:28 +1000
 To:  "Techniques - HWG" <hwg-techniques(at)hwg.org>
  todo: View Thread, Original
Hi all,

I apologise for the repost, but I forgot to include the appropriate href
where each style is called.  This 'new' information might make my issue a
little clearer.

Can anyone explain why DW would mark styles as being unavailable when a
stylesheet validates in TopStyle Lite?

I adopted the following mark-up from a working CSS sample sent to me by a
friend.  That sheet works (provided I don't copy the page and link into a
subdirectory).  Mine does not - irrespective of where I place the page or
sheet.

The original mark-up (with initial period included for web-enabled e-mail
clients) was:

.A.leftnav:LINK, A.leftnav:VISITED, A.leftnav:ACTIVE {
    font-family : Arial, Helvetica, sans-serif
    font-size : 12px
}

It is called thusly: <.td> <.a href="info.html" class="leftnav">Home</a>
</td> and both the style and link work properly.

My version - which is marked as "unavailable" in DW - is as follows.  As you
can see, all I've done is change the face.

.A.toc:LINK, A.toc:VISITED, A.toc:ACTIVE {
     font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
     font-size : 12px;
}

It is also called thusly:  <.td><.a href="info.html"
class="toc">Home</a></td>

As you can see, there are only two variations - a space between TD and A
tags (cosmetic?) and the class name.  Incidentally, clicking on the link
does get you to the correct page - it's just that the style doesn't work.

The site isn't posted yet so I can't point anyone to the full pages.  I can,
however, send you the appropriate page & css if you need to see them
off-list.

There are other styles that have the same problem.  I created one style to
highlight the first letter of each word in a .H2 style.  The style is
available if I want to apply it to the whole paragraph - but become
unavailable when I try to apply it to only the selected characters!  Using
.H2:first-letter, but that applied the style to ONLY the first letter of the
paragraph; not exactly what I wanted.

Am I going blind, is my computer having a brunette day or should I forget
about style sheets completely <grin>?

Any help you can give me (before I go completely bald from ripping out what
little hair I have left) is greatly appreciated!

Sincerely,

Henry John Boleszny
  Business & Web Site Consultant
  ABN: 27 097 668 056

E-mail:          henryb(at)seaeagle.aunz.com
Web:             http://brownbear.htmlplanet.com
Phone:           (07) 5529 2661
Messages:        0410 603 063
Post:            PO Box 3667, Burleigh Town QLD 4220, Australia

"Just when you think you know it all, along comes a teenager who already
does."

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