khuri-common-css
v1.1.2
Published
common css for web page
Downloads
18
Readme
common-css
Readymade class for common css as: padding, margin, flex, position, float
Quick start
This package can be installed with:
$ npm install khuri-common-css
Static html
<link rel="stylesheet" href="/css/common.css" />
<link rel="stylesheet" href="/css/common.min.css" />
How to Use
<div class="fs-12"> Your Content </div> <!--for font-size 12px;-->
<div class="m-t-10"> Your Content </div> <!--for margin-top 10px;-->
<div class="p-t-10"> Your Content </div> <!--for padding-top 10px;-->
<div class="lh-15"> Your Content </div> <!--for line-height 15px;-->
<div class="dis-none"> Your Content </div> <!--for display:none;-->
<div class="pos-relative"> Your Content </div> <!--for position:relative;-->
Defualt classes
.m-t-10 /* for margin-top:10px */
.m-r-10 /* for margin-right:10px */
.m-b-10 /* for margin-bottom:10px */
.m-l-10 /* for margin-left:10px */
.p-t-10 /* for padding-top:10px */
.p-r-10 /* for padding-right:10px */
.p-b-10 /* for padding-bottom:10px */
.p-l-10 /* for padding-left:10px */
.fs-8 /* for font-size:8px */
.fs-9 /* for font-size:9px */
.m-l-auto {margin-left: auto;}
.m-r-auto {margin-right: auto;}
.m-lr-auto {margin-left: auto; margin-right: auto;}