•  
     

div 3 color red - HTML & CSS

index.html

Código: Selecionar todos

<!DOCTYPE html>
<html>
	<head>
		<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
		<title>div 3 color red - HTML & CSS</title>
	</head>
	<body>
		<h3>I'm plain old font!</h3>
		<div>
			<h3>Me, too!</h3>
			<div>
				<h3>Me three!</h3>
				<div>
					<h3>Forget you guys. I'm about to be red!</h3>
				</div>
			</div>
		</div>
	</body>
</html>


stylesheet.css

Código: Selecionar todos

div div div h3{color:red;}


Demo: http://jsfiddle.net/LXwjQ/