Jim R Posted October 4, 2011 Share Posted October 4, 2011 Hello, I have my left and right margins set at auto for the img tag in the .home-middle-3 class. The image that doesn't appear to be centered is the Boys Club image. http://grassrootsindiana.com/ Quote Link to comment Share on other sites More sharing options...
Jim R Posted October 5, 2011 Author Share Posted October 5, 2011 I think I figured it out. It may have been a max-size issue with another image. Quote Link to comment Share on other sites More sharing options...
Frank P Posted October 5, 2011 Share Posted October 5, 2011 I think I figured it out. It may have been a max-size issue with another image. Margin:auto doesn't work on inline elements such as images. In stead, you could use text-align:center, declared for the parent element. For more information, see How to Center in CSS. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.