Article View: chile.comp.programacion
Article #2699Re: <TABLE align="center"> en HTML 4 / CSS?
From: Hector Vergara R.
Date: Thu, 27 Oct 2005 03:19
Date: Thu, 27 Oct 2005 03:19
62 lines
2174 bytes
2174 bytes
necesariamente tienes que colocar un div fuera de la tabla para que sea
cross-browser compatible.
en firefox funciona bien sin el div, pero en ie no.
funciona en:
MSIE5, MSIE6, MacIE5, Opera, Safari, Firefox, Mozilla y Netscape.
un ejemplo:
<html>
<head>
<style type="text/css">
.centrado { text-align: center; }
TABLE { margin: 0 auto; }
</style>
</head>
<body>
<div class="centrado">
<table border="1">
<tr>
<td>hola</td>
<td>chao</td>
</tr>
</table>
</div>
</body>
</html>
saludos!
"Miguel Farah F." <NOmigSPuelAM@lj.cl> escribi� en el mensaje
news:435edc5a@news.vcd.cl...
> Tengo un documento HTML lleno de tablas declaradas as�:
>
> <TABLE align="center" BORDER="1" width="80%">
>
> que quiero llevar a HTML 4.01 / CSS. El argumento "width" es trivial -
> basta con poner esto:
>
> TABLE { width: 80% }
>
> en el CSS. Lo que no tengo claro es c�mo llevar el 'align="center"' a
> CSS.
>
>
>
> GDA.
>
> --
> MIGUEL FARAH // NOmigSPuelAM@lj.cl
> #include <disclaimer.h> // http://www.farah.cl
> <*>
> (__) Errar es humano. Mugir es bovino.
> ( oo /
> /\_|
Technical Details
Message-ID:
<djphh7$2p6$1@news1.nivel5.cl>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!nntp-server.pubsub.com!news1.nivel5.cl!not-for-mailReferences:
<435edc5a@news.vcd.cl>Show Full Headers
Complete Article Headers
X-Google-Thread: 1593cb,468f243b5804c8e8 X-Google-Attributes: gid1593cb,public X-Google-Language: SPANISH,ASCII Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!nntp-server.pubsub.com!news1.nivel5.cl!not-for-mail From: "Hector Vergara R." <hvergara@gmail.com> Newsgroups: chile.comp.programacion Subject: Re: <TABLE align="center"> en HTML 4 / CSS? Date: Thu, 27 Oct 2005 00:19:36 -0300 Organization: Varios Lines: 64 Message-ID: <djphh7$2p6$1@news1.nivel5.cl> References: <435edc5a@news.vcd.cl> NNTP-Posting-Host: pc-75-16-83-200.cm.vtr.net X-Trace: news1.nivel5.cl 1130383719 2854 200.83.16.75 (27 Oct 2005 03:28:39 GMT) X-Complaints-To: news@news1.nivel5.cl NNTP-Posting-Date: Thu, 27 Oct 2005 03:28:39 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106