This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook-apps] anchors give strange effect with CSS


On Wed, Feb 23, 2005 at 02:43:17PM +0100, Ruiter, Epco de (RBI-NL)
wrote:
> a { color: red; font-weight: 600; text-decoration: none;
> letter-spacing: 0em }> a:hover { color: red; font-weight: normal;
> letter-spacing: 0.5em }

I can't explain why this happens.  I'd speculate it's because the
docuemnt is actually treated as SGML, rather than XML.  Try renaming the
file with a .xml extension and retesting in (without the SGML comment
around your CSS).  It then works as expected, for me, in Firefox.


Anyway, CSS defines a hack to differentiate the two uses of <a>.  Make
use of the :link pseudo class,

  a:link { color: red; font-weight: 600; text-decoration: none; letter-spacing: 0em }
  a:link:hover { color: red; font-weight: normal; letter-spacing: 0.5em }


dave


-- 
http://david.holroyd.me.uk/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]