[thelist] inline css

kristina kristina at kfx-design.co.uk
Wed Nov 14 05:49:10 CST 2001


  I'm struggling over a bit of inline css, that I'm hoping some one will
  be able to help me with.  (I would not normally use inline css)

  Theres a piece of code that needs to be able to be easily removable from
  a site, so people can cut'n paste it onto their own site (if they
  wish).  The thing is, I want the piece of code to remain validated
  and use css, so it has a 'livery'.  In the piece of code there is a

  My question is this: How can I put some inline CSS into an <a
  href=""> tag that covers all the a: classes - as I don't want the
  original style to override the inline one.

  This is what I've tried, but the a:hover{text-decoration:none
  underline; color:red} doesn't work (I didn't think it would)
  <td><a href="http://link.htm" style="font-style: normal; font-family: Arial, Helvetica, sans-serif; color: #FF0000; text-align: right; a:hover{text-decoration:none underline; color:red}">Help</a></td>

  Blimey - hope that makes sense


kristina at kfx-design.co.uk

"When written in Chinese, the word 'crisis' is composed of two characters.
One represents danger, and the other represents opportunity."
-- John F. Kennedy

More information about the thelist mailing list