•  
     

Div transparente em css

Div transparente

Código: Selecionar todos

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Teste</title>
<style type="text/css">
#geral {
	width: 750px;
	background-color: #CCCCCC;
	margin: 0 auto;
	height: 500px;
	text-align: center;
	background: url(imagem.gif);
}

#transparente {
	background-color: transparent;
	height: 200px;
	width: 200px;
	border: 1px solid #000000;
}
</style>
</head>
<body>
	<div id="geral">
		<div id="transparente">
			conteudo<br />
			<img src="imagem02.jpg" alt="" />
		</div>
	</div>
</body>
</html>