Firefox Sucks!

Out of context: Reply #29

  • Started
  • Last post
  • 74 Responses
  • welded0

    Centering a div vertically and horizontally is easy with css. Firefox and CSS play very, very nicely together. True, it's a pain in the ass to get cross browser code sometimes (I'm a sucker for that sort of thing, unfortunately) and I wish that vertical-align worked more consitantly, but it can be done with patience and education.

    The fastest, easier solution is to use Transitional HTML, so if that's what you know then just use that. Leave the positioning and the clients who DO care about standards to those who can do it.

    (Just in case you decide we're arguing here, this is one way to center the div:
    Position it absolutely 50% in either direction, then set it's margins to be negative 1/2 it's height and width. Done. Finished. [except it doesn't work in IE unless you take the doctype out])

View thread