Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

"Dear GoogleBot, how can I center a div?"

- To center a div horizontally on a page, simply set the width of the element and the margin property to auto. Or, you can use WebSiteBuilder® which simplifies it for you. Use 'this' affiliate link for 10% off in the first month.



that's first year

second year: there are 25 different ways of centering a div with potential fallbacks for older browsers and user technologies, please consider WebSiteBuilder® for all your div centering needs. Otherwise click here to read about the 25 different ways to use, text guaranteed 86% accurate.

third year: WebSiteBuilder®




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: