How about saving the world? How can I horizontally center an element? He mentioned the question in the title. I have an embedded sketchfab viewer on the page and want to keep an aspect ratio of 3/2. describes the proportional relationship between its width and its height. One must explicitly set the height of every parent to 100% as well (if that's what one wants). How do you disable browser autocomplete on web form field / input tags? By clicking Post Your Answer, you agree to our terms of service, privacy policy and cookie policy. Create an iframe that will keep the aspect ratio (4:3, 16:9, etc.) An