Static.css Web-Document

Introduction

Static.css

Development

Download / Installation

Getting Started

Heading

Body

Side Navigation

Container

Grid

Table

Typography

Color

Image

Footer

External Resources

Static.css GitHub

MDN Web Doc

W3C standards

Introduction

Static.css is a simple light css library for building web-docs / simple web-pages. Unlike most css frameworks it does not contain too many contents; which eventually helps to build a lighter web platform . It gives exacly what you initially need for building web-doc / web-page. And this documentation helps to override for further customization. As most of you already assumed, this library is not suited for building a dynamic web-app. It is specially designed for building simple light weight web pages. Even though it is a lighter library compared to other css frameworks, it covers almost all essential features you need to create your page. Also a cool feature, this library is not JavaScript dependent! Some people may see this as a drawback, it is intentionally done to make the library light weight and use the full potential of HTML+CSS (like old websites!).

To start using this libray either use stylesheet links or download the bundle. And follow the Getting Started section to know more about tags & how to override for further customization.

Creative Commons Licence
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.

Development

Static.css intially developed by:

This project is open souce. Feel free to introduce any new features or other further development. Visit GitHub repository.

Download / Installation

Direct link:

For quick access I recommend using the direct link to our library. Use one from Static.min.css / Static.css file. Both are same but the .min version has all the unnecessary character removed to make the file size smaller.

Copy direct link for Static.css:

https://jayedrafi.com/static-css/link/Static.css

Copy direct link for Static.min.css:

https://jayedrafi.com/static-css/link/Static.min.css

Bundle pack:

Download the Static.css bundle file: Download Bundle

Getting Started

This sections covers the details about existing tags and override process.

Heading

Heading classes:

Style 1: Logo with text

Title

<div class="header"> <img src="./image_folder/logo.jpg" alt="logo" class="header-logo"> <p class="header-text">Title</p> </div>

Style option 2: Text

Title

<div class="header"> <p class="header-text">Title</p> </div>

Add background/text color:

Use Color section to pick desired color and use the class as following.

Title

<div class="header bg-navy-blue t-white"> <p class="header-text">Title</p> </div>

Body

Body contains most parts of the site layout. All tags except footer tag should remain inside HTML body.

Layout 1: Body with only container (with/without heading)

For layout 1 use only heading class & content class inside HTML body. You can also opt-out heading by not using the heading class.

layout <body> <div class="content"> </div> </body>

Layout 2: Body with left/right hand navigation (with/without heading)

Following from layout 1, to add an left/right hand navigation use side-nav-left / side-nav-right class before content class.

layout <body> <div class="side-nav-left"> <p class="topic"> TOPIC NAME </p> <p><a href="#"> OPTION#1 </a></p> <p><a href="#"> OPTION#2 </a></p> </div> <div class="content"> </div> </body>

Side Navigation

Following from discussion in the Body section, Static.css offers two side navigation options (left & right). Both options are built with device compatibility feature.

Note: Default side navigation design is similar to the side navigation on this web-document.

Side navigation clases:

Inside classes:

<body> <div class="side-nav-left round-nav"> <p class="topic">Topic</p> <p>Option 1</p> <p>Option 2</p> <p class="topic">Topic</p> <p><a href="#" target="_self">Option 1</a></p> <p><a href="#" target="_self">Option 2</a></p> </div> </body>

Container

Container class: content

Basic container details are discussed in the Body section.

Customization options:

Grid

2 column:

Item 1
Item 2
Item 3
Item 4
<div class="grid-2"> <div class="grid-content">Item 1</div> <div class="grid-content">Item 2</div> <div class="grid-content">Item 3</div> <div class="grid-content">Item 4</div> </div>

3 column:

Item 1
Item 2
Item 3
Item 4
Item 5
Item 6
<div class="grid-3"> <div class="grid-content">Item 1</div> <div class="grid-content">Item 2</div> <div class="grid-content">Item 3</div> <div class="grid-content">Item 4</div> <div class="grid-content">Item 5</div> <div class="grid-content">Item 6</div> </div>

4 column:

Item 1
Item 2
Item 3
Item 4
Item 5
Item 6
Item 7
Item 8
<div class="grid-4"> <div class="grid-content">Item 1</div> <div class="grid-content">Item 2</div> <div class="grid-content">Item 3</div> <div class="grid-content">Item 4</div> <div class="grid-content">Item 5</div> <div class="grid-content">Item 6</div> <div class="grid-content">Item 7</div> <div class="grid-content">Item 8</div> </div>

5 column:

Item 1
Item 2
Item 3
Item 4
Item 5
Item 6
Item 7
Item 8
Item 9
Item 10
<div class="grid-5"> <div class="grid-content">Item 1</div> <div class="grid-content">Item 2</div> <div class="grid-content">Item 3</div> <div class="grid-content">Item 4</div> <div class="grid-content">Item 5</div> <div class="grid-content">Item 6</div> <div class="grid-content">Item 7</div> <div class="grid-content">Item 8</div> <div class="grid-content">Item 9</div> <div class="grid-content">Item 10</div> </div>

Customization options:

Table

Topic 1 Topic 2 Topic 3 Topic 4
Item Item Item Item
Item Item Item Item
Item Item Item Item
Item Item Item Item
<table> <tr> <th>Topic 1</th> <th>Topic 2</th> <th>Topic 3</th> <th>Topic 4</th> </tr> <tr> <td>Item</td> <td>Item</td> <td>Item</td> <td>Item</td> </tr> <tr> <td>Item</td> <td>Item</td> <td>Item</td> <td>Item</td> </tr> <tr> <td>Item</td> <td>Item</td> <td>Item</td> <td>Item</td> </tr> <tr> <td>Item</td> <td>Item</td> <td>Item</td> <td>Item</td> </tr> </table>

Other options:

Typography

Text classes:

Examples:

Text position classes:

Text style classes:

Color

Static.css does not contain every color as it was built to be a light css facility. How ever I included some popular color to use as text/background. If this does not satisfy your need, it is recommended to use the provided code after the color table to override existing colors.

Background/text color classes:

Color background class text class
bg-black t-black
bg-dark-gray t-dark-gray
bg-gray t-gray
bg-white t-white
bg-red t-red
bg-orange t-orange
bg-yellow t-yellow
bg-navy-blue t-navy-blue
bg-acqua t-acqua
bg-green t-green
rm-bg Not applicable

Change default background:

Background color of the HTML is set to a yellowish color by default. If you want to change the color, then copy & paste the following code in your HTML file.

<style> html{ background-color: white; } </style>

Image

Image position class:

Image shapes and sizes:

Round shape:

Class image-profile + any size class (image-sm / image-md / image-lg).

random image profile

Small size:

Class image-sm

random image

Medium size:

Class image-md

random image

Large size:

Class image-lg

random image

Other options:

footer tag: footer

<footer> <p>An open source light css library.</p> </footer>