Lior Lior - 1 year ago 60
HTML Question

How to center an element that is wider than its parent element?

I currently have a div with a fixed width of 900px.

I'd like to add a child iframe with a fixed width of 950px, and I'd like it to be perfectly aligned to the center.

How can that be done?


Answer Source
.container {

iframe {
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download