css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv
CodePen probably won't work great in this browser. We generally only support the major desktop browsers like Chrome, Firefox, Safari, and Edge. Use this one at your own risk! If you're looking to test things, try looking at Pens/Projects in Debug View.
user profile image


  1. From a "code review" perspective:

    • width:100% should tell me that this box is styled to shrink-wrap because such explicit width is needed to make sure that content does not dictate the box width. Here, because it is not the case, the declaration is useless and can be removed. So in such case those would not be the same as one rule could contain a single declaration instead of 2.
    • the values of width/max-width depend usually on the approach: "desktop first" or "mobile first"? width:100% suggests a "mobile first" approach, while max-width:100% suggests a desktop first approach.

Leave a Comment Markdown supported. Click @usernames to add to comment.

You must be logged in to comment.