Giter VIP home page Giter VIP logo

css-lecture's Introduction

CSS

Objectives

  • Become familiar with CSS and Frameworks that make styling web applications faster and easier

  • How to customize css when using a framework

  • Discuss best practices

  • How to incorporate Google Fonts

  • Collect helpful resources

  • What is HTML? Hypertext Markup Language - HTML is the language for describing the structure of Web pages

  • What is CSS? Cascading Style Sheets - describes how HTML elements are to be displayed on screen

Why CSS is important

  • Adds your own style to your projects
  • <a href="http://www.csszengarden.com/">Zen Garden</a>

Key Principles of CSS

  • Types of CSS (in relation to HTML)

    • Inline <p style="color: red">in line!</p>
    • Internal <head> <style> p {color: red;}</style> </head>
    • External <link rel="stylesheet" type="text/css" href="./stylesheet.css"/>
  • The Box Model

    • Padding: distance from the inside of the div or the content to the border
    • Border: border around div
    • Margin: distance from exterior content to the div
  • CSS Ruleset

    • Selector (the HTML element/elements you want to target)
    • Declaration Block (everything inside the curly bois)
      • Property Key/Value Pair (each key/value pair, as separated by a colon and ending in a semicolon, is a declaration in the declaration block)
        • Property (property name)
        • Value (property) Value
    .main-container {
      color: #555555;
      font-size: 16px;
    }
    
  • How CSS declarations Cascade

    • "Cascading" means that styles can fall (or cascade) from one style sheet to another, enabling multiple style sheets to be used on one HTML document
    • CSS hierarchy of importance
      • most specific to most general
    • Style is inherited if not explicitly defined
    • Will always look to nearest definition, if style is declared multiple times.

CSS Frameworks

  • Semantic UI, Material UI, Bootstrap - CSS Frameworks that provide easy ways to style content
  • Google Fonts - Library of fonts that can be imported to enhance style of markup

css-lecture's People

Contributors

perpepajn25 avatar

Watchers

 avatar

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.