Re: align="center"
by "Darrell King" <darrell(at)webctr.com>
|
| Date: |
Wed, 18 Jun 2003 07:22:04 -0400 |
| To: |
"Octavian Rasnita" <orasnita(at)home.ro>, <hwg-techniques(at)mail.hwg.org> |
| References: |
microsoft |
| |
todo: View
Thread,
Original
|
|
Technically, this should do it:
style='margin: auto;' or style='margin: 0px auto 0px auto;'
The key is to make the left and right margins automatic.
IE doesn't support the automatic sharing of margins, though. You can see
the effect work in Mozilla. To support IE, you need to place the table in a
block-level element that has a 100% width and a text-align: center
declaration:
<div style='width: 100%;text-align: center'>
<table ... >
</table>
</div>
D
----- Original Message -----
From: "Octavian Rasnita" <orasnita(at)home.ro>
Please tell me what is the CSS code for aligning a table in the center of
the browser instead of <table align="center">
I've tried <table style="text-align: center;"> but it is not doing what I
want.
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.