OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
How to Write VALIGN in CSS
This page's ID:
10934
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
For centering, using div align=blah isn't 'correct' -- the 'correct' way of doing it is margin: auto. However... margin: auto doesn't &%#$ work in Internet Explorer, requiring more drastic medicine. Look up any of the famed CSS layout repositories (glish, bluerobot, etc) and you'll learn all about it. So if you're coding to XHTML Strict -- which there's no earthly reason to do other than bragging rights and mental exercise -- you can't use div align. But if you're using HTML 4.0 Transitional, or XHTML 1.0 Loose, you can do whatever your heart desires. You should do whatever [i]works[/i] best. If you're not trying to be a standards showcase, why not just use div align when you absolutely need centering, and pure CSS for everything else? You won't get any flak from me. I use the Strict doctype (and yet I allow validation-breaking HTML in user posts on my weblog)... why? No good reason.
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »