Cheat sheet for CSS

Shortcuts

Add CSS file to HTML

<html>
    <head>
        <link rel="stylesheet" href="css/styles.css" />
    </head>
</html>

Block element to inline

h1 {
    display: inline;
}

Selector by id

#id-element {

}

Import font

@import url('https://fonts.googleapis.com/css?family=Germania+One');
/* fonts.google.com */