20020806 Tuesday August 06, 2002

Centering tables with CSS on IE5/Mac I've been using <table align="center"> in my pages for a few months now because I couldn't get my tables to center align with style="margin: 0px auto". Until today, I found this tip with a simple search on Google.

As demonstrated in this simple example page, IE5/Mac centers tables using the correct margin styles if they are written in long-form as margin-left:auto; margin-right:auto;. The shorthand forms such as margin:0 auto; do not work. Fortunately this bug is easily worked around by using the long-form syntax.

Good to know, life just got a little easier. Posted in Mac OS X at Aug 06 2002, 04:34:37 AM MDT Add a Comment

Comments:

Post a Comment:
  • HTML Syntax: Allowed
Click me to subscribe
Matt Raible is a Web Architecture Consultant specializing in open source frameworks.
« May 2012
SunMonTueWedThuFriSat
  
1
2
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
23
24
25
26
27
28
29
30
31
  
       
Today

Recent Entries

Tag Cloud