Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

I have a web app that centers an DOM element. The marginLeft and marginRight are both set to auto. As I change the width of the browser window, the element centers until the browser width drops below a certain point (still plenty of margin on both sides of the element). At that point, the DOM element quits moving and the right side of the browser eventually covers the element. This happens in both IE8 and FF12.

share|improve this question

closed as off topic by Alex, Eight Days of Malaise, Barry Jun 6 '12 at 10:27

Questions on Web Applications Stack Exchange are expected to relate to web applications within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

Browse other questions tagged or ask your own question.