#1
  1. No Profile Picture
    Banned
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Apr 2005
    Posts
    4,934
    Rep Power
    0

    Centering DIVs inside other DIVs in Firefox?


    Centering DIVs inside other DIVs in Firefox? Can it be done in a straight forward way? Setting the inner DIVs float to none seemed to work for IE but not FF.
  2. #2
  3. Winemaster
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Jul 2004
    Location
    Sendai, Japan
    Posts
    1,355
    Rep Power
    168
    Don't float the inner div. Give it a width and auto margins. Make sure you have a valid DTD.

    Comments on this post

    • Arty Ziff agrees : Oh yes. That seems to work quite well...

IMN logo majestic logo threadwatch logo seochat tools logo