I am trying to center an element/div horizontally on a page. My usual strategy for this is to do margin:0 auto or margin-left:50%; and make up the difference with left:-half the div width;.
However when I do this, I run into a problem when I view the website on a smaller screen or browser size. Basically if the viewport is less than the width of the div, some of the div is clipped and there is no way to scroll to see the rest of it. The overflow property seems to be unaffected by this?
This is a problem I've run into a few times and haven't ever been able to find a solution. I poked around the forums but I couldn't find an answer. Any help to push me in the right direction would be helpful!
Some examples of where this happens (just resize your browser window to be a small width and you'll see it happen):
http://brienhopkins.com/resume/
Thank you!