GithubHelp home page GithubHelp logo

yankunm / my_css_guide Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2 KB

This guide is intended as a reference of key basic information for CSS3.

HTML 96.62% CSS 3.38%
bootstrap5 css-animations css-flexbox css-grid css3

my_css_guide's Introduction

Yankun's CSS Guide

Cascading Style Sheets (CSS) is the adjective, or the visuals, of a webpage.

It is not a programming language, but a descriptive language. Have the right mindset when learning it!! It is a lot of fun!!!

MDN CSS Reference

CSS Basics

Everything in CSS follows the CSS Pattern:

selector {
    property: value;
}

For example, here is how to make all <h1> purple:

h1 {
    color: purple;
}

We can have two different properties as well:

img {
    width: 100px;
    height: 200px;
}

It could get fairly complex as well:

input[type="text"]:nth-of-type(2n){
    border:2px solid red;
}

How to Include Styles?

  • Inline Styles in html - DO NOT DO THIS (because you can't share them)
  • Style Element - this is also not recommended because how do you share this across html files?
  • External Stylesheet - write in .css file and include using <link>

Link Element

The link element goes into the <head>:

<link rel=-"stylesheet" href="file.css">

Colors

The color property changes the text color.

my_css_guide's People

Contributors

yankunm 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.