Giter Club home page Giter Club logo

css-review's Introduction

CSS Crash Course

Download

(Once you've had an intro to Git and Github, these steps will no longer be necessary.)

Click the "Download ZIP" button toward the top-right of this page. This will download a .zip file to your Desktop (or your "Documents" folder, or your "Downloads" folder, depending on how your computer's set up).

It may automatically "expand" and turn into a folder with the same name. If it doesn't, double-click on the .zip file, or right-click on it and select "Expand".

Move the expanded folder into your wdi folder to keep everything organized.

Instructions

Provided are a bunch of .md files, and a bunch of .css files.

The .css files contain a bunch of CSS snippets. The .md files contain English descriptions of what all those CSS snippets do -- but in a different order.

Your job is to copy each CSS snippet and paste it next to its description in one of the .md files.

For example:

A CSS snippet:

background-color:red;

An .md file:

Gives el a red background
` ` `
.el{

}
` ` `

...and the solution in the .md file:

Gives el a red background
` ` `
.el{
  background-color:red;
}
` ` `

To solve this...

First, look at the words used in the CSS snippets. What do the words mean in English? For instance, if you see background-color:red, it's pretty obvious what that does.

If you're not sure about a particular snippet, put it in the provided index.html and see how its appearance is affected.

  1. Open the provided index.html file in your web browser. (Drag and drop the file onto the icon of a web browser on your computer.)
  2. Copy and paste the snippet into the section marked PUT YOUR CSS HERE.
  3. "Save" the index.html file.
  4. "Refresh" the page in your browser to see what changes have been applied.

If you're still unsure, try Googling the name of the CSS property in question (e.g. "CSS background-color").

What is "el"?

"El" is short for "element". Often, "el" is used in Javascript to refer to a certain element. In this case, when you're told to "do something with el," it means "do something with all elements with the class of 'el'".

Hint

If you've copied and pasted some strange CSS and refreshed the page, but it doesn't look any different, the CSS may only affect its appearance when the screen or particular elements are bigger or smaller than a certain size.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.