Get a free trial // Grow your CSS skills // Land your dream job


  • # April 7, 2012 at 9:52 am

    Can anybody suggest the method to achieve the result that float:center can do but as it is not an option provided by CSS.

    # April 7, 2012 at 10:16 am

    Hi Manjsethi, We’d need more information to be able to help fully
    But maybe what you need is

    margin:  0 auto;
    # April 7, 2012 at 10:29 am

    A good way to do it is as karl suggested above, however, I’m not sure how words wrap around that–

    you may want to check out the article by Chris here on “Faking float: center”.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed