Prevent oversized content to break fixed width floated layouts

/ Published in: CSS
Save to your folder(s)

When oversized content (i.e. wide image) is placed in fixed width floated container, it may break the layout. To prevent that use this trick. It will hide a part of the content but at least your layout structure will remain intact.

Copy this code and paste it in your HTML
  1. #main { overflow: hidden; }

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.