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
Search This Site
Recent Entries
- Wine Tasting in Napa Valley
- How to build a Shot-Ski
- Bus Project Update
- Farewell to the 2011-2012 Ski Season
- Cruising around the Western Caribbean
- Spring Break!
- A Spectacular Trip to Stockholm and Madrid
- Comparing Web Frameworks and HTML5 with Play Scala at Jfokus 2012
- Play Framework 2.0 with Peter Hilton at Jfokus
- Secure JSON Services with Play Scala and SecureSocial