Code Monkey home page Code Monkey logo

css-basics's Introduction

Basic CSS

Overview

The goal of these sample web pages and associated style sheets will be to provide the student with a high level overview of the most basic CSS concepts. Mastery of CSS is not the end goal of these examples.

After reviewing these samples the student should have an awareness of:

  • the difference ways to add CSS styles to a document
  • class and id selectors
  • the different display options
  • the CSS box model
  • float and clear
  • responsive images
  • pseudo-classes
  • how to center content
  • media queries
  • how to use less CSS preprocessor

Questions To Think About

What are the different ways to add CSS styles to an HTML document?

What is the difference between a class selector and an id selector?

When would you choose to to apply a class to an element vs. using an id?

What is the difference between "display:none" and "visibility:hidden"?

Briefly name and describe the different areas of the CSS box model.

Describe what happens to elements that follow an element that has a float on the page? How can this problem be fixed?

What is the advantage of using percentages as the value of element widths?

What is one way to center content on a page?

How can you make images more responsive on a page?

Name a couple different pseudo-classes.

What is the benefit of styling a page as "mobile first"?

How can media queries help aid in responsive design?

What are the different ways that we can use the less CSS preprocessor?

css-basics's People

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.