I'm a web designer & developer
Based in Athens, Georgia
with a major in Journalism, minor in Spanish and a New Media Certificate
I didn't know what I wanted to do but I knew I wanted to work with code/design
I loved it!
Got fired from agency job for on-the-side freelancing
Turned on-the-side freelancing into full-time job.
Still doing it over three years later!
It stands for Cascading Style Sheet
CSS determines the STYLE of your webiste (I'll explain "cascading" in a second)
This includes:
This includes:
Looks like this [codepen].
The “cascade” is an algorithm that your browser performs to decide which styles to use on your site.
aka the style that wins
So if you have perfectly written CSS but it's just not working, your "cascade" is likely off
Style.css comes first. Custom.css comes second.
Custom.css is the “winning” stylesheet
p {color:white} is the winner because “custom.css” comes AFTER “style.css” in your html HEAD
Your browser will also scan your stylesheet to see which CSS wins for each element.
Ranking of importance:
Elements are the html selectors you use
Like...
If you create CSS for an element, like...
Then any link on your WHOLE website will be blue.
If you add a class to your html element like...
and then you add CSS for that class...
Then that link will be the color red instead of blue.
A class wins over an element.
If you add an ID to your html element like...
and then add CSS for that ID...
Then that link will be the color green instead of red. An ID wins over a class and element.
Let's test it out on this codepen
Google Fonts
Adobe Fonts
Custom Font Files
First pick your custom font on fonts.google.com
Then let's add it to your stylesheet. Using this codepen.
Let's pick out our fonts on fonts.adobe.com
Let's add the custom Adobe font to our website. Using this codepen.
This is if you purchase or download custom font files
It doesn't come with a handy copy+paste line of code
For example, I purchased the font GT Haptik for my portfolio website.
First add the font files you've downloaded to your website directory
Let's see where I added my custom font files for this CSS Workshop website.
Then let's see where I added them to my css using @font-face [on github]
the @font-face rule
there are almost limitless options, but I'll show you the attributes I use the most often.
font-size
color
line-height
letter-spacing
font-weight
text-transform
text-decoration
text-align
First, let's make it look like a button.
:hover [when you hover on link]
:focus [when you click on link]
:visited [if you've already clicked on link]
Now we understand typography for CSS
flexbox
bootstrap
css grid
a layout mode for CSS
What The Flexbox (flexbox.io) is a great video series
Flexbox for content alignment
Another good resource is CSS Trick's A Guide to Flexbox
this is a CSS framework that you connect to your website
It comes with a lot of pre-loaded styles, functionality, grid layout
For all resources + documentation visit getbootstrap.com
Ok, now we know a little about typography and alignment
1440px [laptop]
1280px [smaller laptop]
992px [smaller laptop/large ipad]
768px [ipad]
570px [mobile]
480px [mobile]
375px [mobile]
@media (max-width: 768px) {/*code goes here*/}
Translates to...when screen size is at the MAX width of 768px. So anything less than 768px will have this styling.
I use "max-width" for my tablet and mobile media queries
@media (min-width: 1440px) {/*code goes here*/}
Translates to...when screen size is AT LEAST the width of 1440px. So anything more than 1440px will have this styling.
I use "min-width" for laptop vs. desktop specific media queries
Let's test it out
Flexbox with media queries: codepen
Typography with media queries: codepen
Inspect element / Dev Tools
Console Log
Stack Overflow / Google
twitter: @skinner_design
instagram: @a.l.l.is.on
website: allisondskinner.com
email: allisondskinner@gmail.com