
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
simple-css-columns
Advanced tools
A simple 12-column framework utilizing CSS grid, built with a focus on keeping the syntax simple and readable.
<link rel="stylesheet" type="text/css" href="css/simple.css" />
Container
Class | Usage | Accepts modifiers |
---|---|---|
.col-row | Container for your columns, handles the grid | No |
.col-fluid | Used in addition to .col-row , this tells the row not to break at breakpoints | No |
Columns
Class | Usage | Accepts modifiers |
---|---|---|
.col-{n} | Spans your column across n number of columns. Max of 12 | Yes |
.col-top | Aligns the column to the top of the row | Yes |
.col-center | Aligns the column to the center of the row | Yes |
.col-bottom | Aligns the column to the bottom of the row | Yes |
.col-stretch | Stretches a column vertically inside its row | Yes |
Elements can span multiple columns using the .col-{n}
class
<div class='col-row'>
<div class='col-9'>Nine columns</div>
<div class='col-3'>Three columns</div>
<div class='col-3'>Three columns</div>
</div>
Column sizes and placement can update based on viewport size using size modifiers. The following modifiers can be appended to any .col-
class to change based on browser size.
Mobile | Tablet | Desktop | Desktop HD |
---|---|---|---|
xs= | sm= | md= | lg= |
30em | 45em | 60em | 75em |
Examples
Adapt column span:
<div class='col-row'>
<div class='lg=col-6 md=col-4 sm=col-2'></div>
<div class='lg=col-6 md=col-8 sm=col-10'></div>
</div>
Adapt placement:
<div class='col-row'>
<div class='col-4 md=col-bottom sm=col-bottom'></div>
<div class='col-4 md=col-center sm=col-bottom'></div>
<div class='col-4 md=col-top sm=col-top'></div>
</div>
FAQs
A simple 12-column framework utalizing CSS grid.
The npm package simple-css-columns receives a total of 5 weekly downloads. As such, simple-css-columns popularity was classified as not popular.
We found that simple-css-columns demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.