Ir para conteúdo

Arquivado

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

p.d

Alinhando uma Table no centro.

Recommended Posts

olha ae o meu html e o meu css, nao entendi ainda porque funciona no ie e nao funciona no ff. Geralmente ocorre ao contrario mas é facil de resolver.

css:

 

html {	height: 100%;	}body {	margin: 0px;	background-color: #FFFFFF;	background-image:url(../imagens/bg.gif);	text-align: center;	}/* tablef eh a id que foi colocada na table principal */#tablef {	width: 780px;	height: 100%;	background-color: #FFFFFF;	border-left: 1px solid #29B8E7;	border-right: 1px solid #29B8E7;	}
html:

 

<html><head><title>Ponto Cão</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><meta name="Author" content="Pablo Davi Faria da Silva"><link rel="stylesheet" media="all" href="css/estilo.css"></head><body><table border="0" cellspacing="0" cellpadding="0" id="tablef">  <tr>	<td id="topo">	 ....<html>
Alguem pode me ajudar ?

Compartilhar este post


Link para o post
Compartilhar em outros sites

Obrigadao... eu ja venho tentando entender um pouco do uso de divs e tudo mas eh que o negocio eh meio urgente e entao mandei ver nas tabelas.. tm como fazer esse alinhamento no centro para funcionar no FF tambem? no IE ta tudo certinho e no FF so falta ficar alinhado ao centro.:S

Compartilhar este post


Link para o post
Compartilhar em outros sites

insere no #tablef :

 

margin:0 auto;

atenção: http://forum.imasters.com.br/public/style_emoticons/default/excl.gif

 

...<body><table border="0" cellspacing="0" cellpadding="0" id="tablef">  <tr>	<td id="topo">	 ....<html>

você esqueceu de fechar a tag html... http://forum.imasters.com.br/public/style_emoticons/default/closedeyes.gif

Compartilhar este post


Link para o post
Compartilhar em outros sites

Tks... nao sabia q margin:0 auto resolvia isso, e ate agora nao sei o porque, mas funcionou ...

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.