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

This is a SCSS mixin for creating a grid of dynamic items, where the first and last items of the first and last rows will have the appropriate round corners, making the whole grid look like a rounded corner box.

These are the basic rule: - The first box in the first row has a top left round corner - The last box in the first row has a top right round corner - The first box in the last row has a bottom left round corner - The last box in the last row has a bottom right round corner

Change the value for the argument in the mixin round-corner-grid(), and it can be 4, 5, 6, etc. and notice that only the boxes at the corner (3 or 4) will have the according round corners.

Comments

  1. No comments yet.

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

You must be logged in to comment.
Loading...
Loading...