Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

simple-css-columns

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-css-columns

A simple 12-column framework utalizing CSS grid.

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Simple Columns

Simple Columns - 12-column layout framework

MIT License

A simple 12-column framework utilizing CSS grid, built with a focus on keeping the syntax simple and readable.

  • Simple syntax powered by responsive modifiers
  • Pure CSS, no precompiling or other tools needed.
  • Fully responsive
  • Infinite nesting

Installation

Download simple.css

<link rel="stylesheet" type="text/css" href="css/simple.css" />

Usage

Container

ClassUsageAccepts modifiers
.col-rowContainer for your columns, handles the gridNo
.col-fluidUsed in addition to .col-row, this tells the row not to break at breakpointsNo

Columns

ClassUsageAccepts modifiers
.col-{n}Spans your column across n number of columns. Max of 12Yes
.col-topAligns the column to the top of the rowYes
.col-centerAligns the column to the center of the rowYes
.col-bottomAligns the column to the bottom of the rowYes
.col-stretchStretches a column vertically inside its rowYes

Column spans

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>

Responsive Modifiers

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.

MobileTabletDesktopDesktop HD
xs=sm=md=lg=
30em45em60em75em

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

Package last updated on 28 Aug 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc