•  
     

Test div - HTML & CSS

index.html

Código: Selecionar todos

<!DOCTYPE html>
<html>
	<head>
		<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
		<title>Acemprol</title>
	</head>
	<body>
		<img src="http://s3.amazonaws.com/codecademy-blog/assets/46838757.png"/>
		<p>Test div - HTML e CSS</p><br/><br/>
		<div>	
		</div>
	</body>
</html>


stylesheet.css

Código: Selecionar todos

img {
	display: block;
	height: 100px;
	width: 300px;
	margin: auto;
}

p {
	text-align: center;
	font-family: Garamond, serif;
	font-size: 18px;
}

div{height:50px;width:120px;border-color:#6495ED;background-color:#BCD2EE;}

Demo: http://jsfiddle.net/qkAW3/