background preloader

Css

Facebook Twitter

TypeSource: Google Web Font inspiration in HTML & CSS. Book - Scalable and Modular Architecture for CSS. Every project needs some organization. Throwing every new style you create onto the end of a single file would make finding things more difficult and would be very confusing for anybody else working on the project. Of course, you likely have some organization in place already.

Hopefully, what you read among these pages will highlight what works with your existing process and, if I’m lucky, you will see new ways in which you can improve your process. How do you decide whether to use ID selectors, or class selectors, or any number of selectors that are at your disposal? At the very core of SMACSS is categorization.

There are five types of categories: Base Layout Module State Theme We often find ourselves mixing styles across each of these categories. Each category has certain guidelines that apply to it. Much of the purpose of categorizing things is to codify patterns—things that repeat themselves within our design. Base rules are the defaults. Examples of Base Styles Example classes. Book - Scalable and Modular Architecture for CSS. GitHub - kss-node/kss-node: The Node.js implementation of KSS: a methodology for documenting CSS and generating style guides. Skeleton: Responsive CSS Boilerplate. Build real-time Web apps with RethinkDB. RethinkDB is an open source database for the real-time Web.

It has a built-in change notification system that streams live updates to your application. Instead of polling for new data, you can have the database push the latest to changes to you. The ability to subscribe to streaming updates from the persistence layer can simplify your application architecture and make it easier to support clients that maintain persistent connections to your back end.

RethinkDB is a schemaless JSON document store, but it also supports relational features like table joins. RethinkDB supports clustering, which makes it easy to scale. You can configure sharding and replication for the cluster through the database's built-in administrative Web interface. The RethinkDB query language, which is called ReQL, embeds natively into the code in which you write your application.

A brief introduction to ReQL RethinkDB databases contain tables, which store conventional JSON documents. How ReQL works. Four CSS tips that have changed me as a man › Evan Hahn (dot com) CSS is impossibly weird. These four tricks have helped me mitigate its weirdness and have saved me hecka time: The first thing in your CSS should be a CSS reset, which helps keep pages more consistent across browsers by overriding their default styles. Eric Meyer's CSS reset is the one I use. I'd also recommend normalize.css, which sets up a bunch of sensible defaults and fixes a bunch of subtle browser inconsistencies.

The CSS box model is funky. Enter box-sizing: border-box. I add padding recklessly, not worrying that my element's going to be destroyed. For more, check out CSS Tricks's article about box sizing. Update: The "right way" to do this stuff is now with flexbox. It's pretty well-known that you don't use tables for layout; you use CSS. Enter display: table and its buddies. Most notably, it lets you do vertical centering real nice (here's a demo): The HTML: The CSS: Sweet damn. You can't read about web development without seeing oceans of new HTML5/CSS3 features. A Complete Guide to Grid. A Complete Guide to Flexbox.

Four CSS tips that have changed me as a man › Evan Hahn (dot com) Sass vs. LESS vs. Stylus: Preprocessor Shootout. Learn CSS Layout. MOSTO: A lightweight framework for forms - Valdelama. Forms aren't much fun to build, I think most web designers find them pretty tedious to design and code. For that reason I wanted to make this framework which should suit most situations where you need a form on your site. Why not just use a framework like Bootstrap or Foundation? I think both Bootstrap and Foundation are awesome frameworks but when it comes to forms I like to wrap the <input> in a <label>, and by doing that you can reduce structural HTML.

It also means you forget about the for="" attribute because wrapping the <input> with the <label> gives you implicit association. End result is less code to write and easier maintenance. Apart from using less HTML, I also wanted a framework with less CSS and more emphasis on using this as your basic starter kit from which you can extend and embellish per site. 1. The simplest, most basic form has the input below the label and the help text below the input. Code structure overview: <form><label> Label text <input></label></form> 2. 3. 4. PocketGrid Documentation. Table of Contents Quick start Here is the minimal markup you need to put in your pages: As you can see, you just have to include the pocketgrid.css (or pocketgrid.min.css) file in the <head> tag of your page and don't forget to set the viewport meta tag to manage media queries correctly on mobile.

That's all you need to work with PocketGrid! Basic rules Instead of creating grids with rows and columns, PocketGrid introduces a more flexible concept with blocks and block groups. The basic rules with PocketGrid are: Blocks have a default width of 100% Blocks must be contained in a block-group To display blocks side by side (like columns), just give them a width in percentage (for example 30% and 70% to make 2 columns) Automatic rows: blocks automatically go to a new row if the current row is full, like words in a text!

Creating rows and columns: the classical way... Like most CSS grid systems, PocketGrid can create rows (using <div class="block-group">) and columns (using <div class="block">). Css - IE8 display inline-block not working.