W3C home > Mailing lists > Public > www-style@w3.org > January 2002

RE: Behavior of nested Links, pseudos and style

From: Liorean <Liorean@user.bip.net>
Date: Thu, 31 Jan 2002 17:33:43 +0100
Message-Id: <5.1.0.14.0.20020131172831.00b41860@pop3.bip.net>
To: "Manos Batsis" <m.batsis@bsnet.gr>, <www-style@w3.org>
At 17:51 2002-01-31 +0200, Manos Batsis wrote:
>Jeez, ok. This list surely is in pedantic mode today, I don't think that
>forgetting to replace href attributes with events is important here,
>since I am trying to discuss the effect of style and how this is
>implemented.
>
><?xml version="1.0"?>
><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
><html xmlns="http://www.w3.org/1999/xhtml">
>    <head>
>       <title>
>         Test: Nested elements, :hover pseudo-class
>       </title>
><style type="text/css">
>div{padding:5px;}
>span{background:yellow;}
>div:hover,span:hover{color:red;text-decoration:underline;}
></style>
>    </head>
>    <body>
>       <div>outer link, <span>inner link</span></div>
>    </body>
></html>
>
>Now is there someone that is interested in this? I really appreciate
>your concern but don't need xhtml lessons, thank you.

The span should inherit anything from the div that is not set to other 
values in a rule of higher specificy or of the same specificy but declared 
later in the document.

In this case, the span should keep yellow background but inherit color and 
text-decoration.

// Liorean
Received on Thursday, 31 January 2002 11:30:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:12 GMT