No replies
emredagli
Offline
newbie
Last seen: 12 years 35 weeks ago
Joined: 2009-05-26
Posts: 1
Points: 0

Hii,
Could you try this code (easly) in
http://www.w3schools.com/Css/tryit.a...ckground-color

<html>
<head>
<style type="text/css">
.c1 {color: #ff0000}
.c2 {color: #00ff00}
.c3 {color: #0000ff}
 
.f1 a {color: #ff0000}
.f2 a {color: #0000ff}
 
</style>
</head>
 
<body>
 
<h1>This is heading 1</h1>
<h2>This is heading 2</h2>
<div class="c3 f2">
<div class="c1">
<p class="c2 f1">This is a <a href="#">paragraph</a>.</p>
</div>
</div>
</body>
</html>

Should "paragraph" text color be red?
When I change the order of as
.f2 a {color: #0000ff}
.f1 a {color: #ff0000}

It now rendered as it is expected red...

Do I miss some think?

Thanks...