seletor {
background: background-color backlground-image background-repeat
background-attachment background-position;
}
div{
background-color: #408080;
background-image: url(imagem.gif);
background-repeat: no-repeat;
background-position: bottom right;
}
div{ background: #408080 url(imagem.gif) no-repeat bottom right;}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="pt-br" xml:lang="pt-br">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Aplicando a propriedade background</title>
<style type="text/css" media="screen">
#bloco{
width: 500px;
height: 200px;
font-weight: bold;
background: #408080 url(imagens/imagem.gif) no-repeat bottom right;
}
</style>
</head>
<body>
<div id="bloco">
<p>Exemplo de aplicação da propriedade background.</p>
</div>
</body>
</html>
Envie seu comentário: