Ir ao conteúdo

centralizar imagem de fundo no meu html


Vipesca suporte

Posts recomendados

Postado

Boa Tarde a Todos,

Sou iniciante mesmo neste assunto, estou tentando criar um e-mail padrão aqui e já conseguir jogar uma imagem dentro do meu OUTLOOK 2007, papel de parede como imagem de fundo.

Tipo toda vez que vou abrir uma nova mensagem aquela imagem fica tipo papal timbrado ao fundo.

O problema é o seguinte, a imagem aparece duplicada, gostaria de centraliza-lá.

Não estou conseguindo, alguém poderia me ajudar? Onde estou errando?

Segue abaixo meu código;

<html><head>

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">

<title id="ridTitle">Logvipesca</title> <style><!-- body { font-family: Arial, Helvetica; font-size: 10pt; color: #6600cc; margin-left:5px; margin-top: 25px } --></style> </head> <body id="ridBody" background="image002.gif"><p> </p> </body> </html>

Agradeço qualquer ajuda!

Postado

Agradeço mesmo hallel, fiz a alteração mais continua ne mesma.

Segue o código abaixo.

<html><head>

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">

<title id="ridTitle">Logvipesca</title> <style><!-- body { font-family: Arial, Helvetica; font-size: 10pt; color: #6600cc; margin-left:5px; margin-top: 25px } --></style> </head> <center> <body id="ridBody" background="image002.gif"></center><p> </p> </body> </html>

bem, eu não entendo mesmo muito, coloquei no lugar certo?

No aguardo...

Postado
Agradeço mesmo hallel, fiz a alteração mais continua ne mesma.

Segue o código abaixo.

<html><head>

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">

<title id="ridTitle">Logvipesca</title> <style><!-- body { font-family: Arial, Helvetica; font-size: 10pt; color: #6600cc; margin-left:5px; margin-top: 25px } --></style> </head> <center> <body id="ridBody" background="image002.gif"></center><p> </p> </body> </html>

bem, eu não entendo mesmo muito, coloquei no lugar certo?

No aguardo...

testa isso aqui

<html><head>

<META HTTP-EQUIV="Content-Type" CONTENT="text/html;

charset=iso-8859-1">

<title id="ridTitle">Logvipesca</title> <style>body {

font-family: Arial, Helvetica; font-size: 10pt; color:

#6600cc; margin-left:5px; margin-top: 25px }</style>

</head>

<body id="ridBody"

<style>

</style>

<CENTER>

<IMG SRC="teste.jpeg">

</center><p> </p> </body>

</html>

  • Membro VIP
Postado

Coloca a imagem no próprio estilo do body. No caso eu coloquei uma imagem no topo e centralizada, sem repetir em nenhuma direção:

 
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=iso-8859-1">
<title id="ridTitle">Logvipesca</title>
<style type="text/css">
body {
font-family: Arial, Helvetica;
font-size: 10pt;
color: #6600cc;
margin-left:5px;
margin-top: 25px;
[B]background-image: url("teste.jpeg");[/B]
[B] background-position: top center;[/B]
[B] background-repeat: no-repeat;[/B]
}
</style>
</head>
<body id="ridBody">
<p> </p>
</body>
</html>

Dúvidas? http://www.maujor.com/tutorial/backtut.php

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

Sobre o Clube do Hardware

No ar desde 1996, o Clube do Hardware é uma das maiores, mais antigas e mais respeitadas comunidades sobre tecnologia do Brasil. Leia mais

Direitos autorais

Não permitimos a cópia ou reprodução do conteúdo do nosso site, fórum, newsletters e redes sociais, mesmo citando-se a fonte. Leia mais

×
×
  • Criar novo...