CSS Frameworks
CSS Frameworks
CSS Frameworks
Alvin Wang
ScottyLabs
Goals
What are CSS Frameworks?
Disadvantages
• Bootstrap (made by Twitter, super popular)
• Foundation (simpler design)
http://expo.getbootstrap.com
Components of a CSS Framework
• CSS / CSS Preprocessor: LESS / SASS
• JavaScript
• Responsive Grid
• Components
• Navigation Bar
• Buttons
• Forms
• Dropdowns
• Modal Popups
• Icons
• + Tons MORE!!!
HTML Refresher
• Text Markup Language
• Ideally, only content should go into HTML files
• <div> are containers
• There are many other tags…
• We separate Style from Content by using CSS classes
• We add classes to elements like this:
• <div class=“class-name”>
CSS Refresher
• Cascading Style Sheet – styles you apply “cascade down”
• General rules cascade down until more specific styles are
applied
• Ideally, only content should go into HTML files
• <div> are containers
• There are many other tags…
• We separate Style from Content by using CSS classes
• We add classes to elements like this:
• <div class=“class-name”>
• Not much!
• A text editor of some sort (recommend Brackets)
• Bootstrap
Setting up Bootstrap
Make a simple portfolio
Our focus is on laying out the portfolio using the grid
and also learning how to add framework components
to our site.
The Grid
Upcoming Workshops