> On Fri, 30 Mar 2007, k9d wrote:
>
> [...]
>> I think I am confused because while I've been hacking around with CSS for a 
>> while and
>> manage to get things done, my understanding of inheritance is poor.
>>
On Mon, 2 Apr 2007 14:55:33 +0300 (EEST), Jukka K. Korpela helpfully suggested: 
>
> The understanding of inheritance is generally very poor, and yet people 
> manage to do
> useful things with CSS. This isn't just magic. In simple cases, inheritance 
> works quite
> intuitively. For example, if you set .product { color: #060; background: 
> #fffff0; }
> then things seem to work much like you expect. All the information in a 
> product block
> has the color and background you set. Yet, everything you see is actually in 
> the
> _inner_ elements, for which you haven't set any colors. By default, they 
> inherit their
> parent's color. They don't inherit its background, but it pretty much looks 
> like they
> did, since the default for background is transparent.
>
[...]
Then there is the odd exception. I remember being utterly confused
after absorbing this rule (re: color being inherited throughout) when
I discovered this is not true of links.

I learned HTML/CSS four years ago, but sometimes still feel like
a neophyte. Still, don't be discouraged. There are far fewer 
exceptions to remember than in learning a natural language.  :)

Cordially,
David
--


______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to