Prid’ is a light and simple CSS stylesheet (9 Ko minified) to help you start any responsive web design project. It's composed of a reset, a fluid responsive grid and some basic styles. Everything else is up to you :)

Prid’ is designed by Thomas Villain at Anybodesign, and used on many projects. Inspired by the work of Raphaël Goetter, Nicolas Gallagher and the Skeleton Framework.

Grid Layout

Prid’ is based on a 12 columns layout. The gutters are handled with the columns' padding, no margin to worry about...

Build your grid with class="row" and class="col-*" elements, then set the width of each column with the appropriate number. For example col-3 for a width equal to 3 columns, col-9 for 9 columns…

Basic grids

col-12

col-6

col-6

col-4

col-4

col-4

col-3

col-3

col-3

col-3

col-2

col-4

col-4

col-2

col-6

col-6

col-12

col-1

col-2

col-1

col-2

col-1

col-2

col-1

col-2

Nested columns

Columns can be nested, you just have to add the class colparent to the parent column, so its padding is set to 0 to preserve global margins.

col-3

col-3

col-6

col-3

Offsets

You can add some left or right margins if needed. For example, add the class left-1 if you want a 1 column left margin, or right-2 if you want a 2 columns right-margin.

col-2

col-3 + 1 col. left

col-3 + 1 col. right

col-2

Mixed widths

Columns can be set to a different width under a particular breakpoint. For example, use the class small-6 to set the width of the column to 50% for small widths. For medium widths you can use mid-6. Breakpoints can of course be customized.

col-3 mid-6 small-4

col-3 mid-6 small-8

col-3 mid-6 small-6

col-3 mid-6 small-6

CSS Styles

Prid’ provides some basic CSS styles to start with.

Typography

Headings:

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Ordered and unordered lists:

  • This is
  • an unordered
  • list
  1. This is
  2. an ordered
  3. list
    • with
    • a nested
    • unordered list

Nice blockquotes:

You must be the change you wish to see in the world.
Gandhi

Images and caption

Figure and figcaption management, fluid width images.

small world photo
Small world...
small world photo
Same small world... in a smaller place

Forms

Custom form design is also included in Prid’, including custom select, checkboxes and radio buttons. Just CSS, no JS, but a few special HTML markup.

Inputs, select and text areas
Checkboxes
Radio Buttons
Submit & Buttons

Tables

Prid' provides simple support for responsive tables, wrapping them into a container.

Animal Name Age Weight Hobby Passion
Cat Prosper 11 8 kg Sleeping Food
Cat Garfield 2 4 kg Hunting Food
That's all about cats now...

Usage

First, just add Prid' style sheet in the head section of your pages, before any other CSS styles. For example:


<link rel="stylesheet" href="css/prid.min.css" media="all">
<link rel="stylesheet" href="css/my-styles.css" media="all">
	 				
 				

For WordPress users, you may copy Prid's CSS file into your theme folder and enqueue it before the main stylesheet in your functions.php file.

				function add_css_styles() {
					
				  	wp_register_style( 'prid', get_template_directory_uri() . '/css/prid.min.css', array(), '1.3', false );
				  	wp_enqueue_style( 'prid' );
					
				  	wp_enqueue_style( 'style', get_stylesheet_uri(), array(), '1.0', false );
				}    
				add_action('wp_enqueue_scripts', 'add_css_styles');
 				

Don't forget to add the SVG sprite in a "img" folder (Or fix the links in the CSS sheets).

Then you can begin to construct your grid with row and col-* classes.
Here is a very basic example:


<header class="row" id="site_header">
      <div class="col-12">My Logo</div>
</header>					

<div class="row" id="site_content">
  	<div class="col-9">My content</div>
  	<div class="col-3">My sidebar</div>
</div>

<footer class="row" id="site_footer">
  	<div class="col-12">My legal terms</div>
</footer>
					
					
				

Get Prid'

The ZIP archive contains Prid' CSS style sheets (for development [sass] and production), the SVG sprite and the users guide.