Skip to content

ljonesdesign/css

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 

Repository files navigation

CSS Cascading Style Sheets

CSS affects html Elements

Selector
	|
	p { 
	    font-family: Arial;}                 
	    |_________________|
	             |
	       declaration
             	       
	    font-family: Arial;
	    |___________|_____|
	          |        |  
	     property:   value;
	          |        |
	        color:  yellow;
	        
	  p {
	     font-family: sans-serif;
	    }     
     

The CSS selector p will affect paragraphs in HTML.

CSS Terms

Internal

<style>
</style>
  • style

External

<link href="style.css" rel="stylesheet" type="text/css">

Alternative Style Sheets:

<link href="style.css" rel="alternate stylesheet" type="text/css">
  • link
    • rel
    • type
    • href

Selectors

Cascading terms

  • Last rule
  • specificity
  • important

Inheritance

  • inherit

Browser Quirks

comments

  • /* This is a css comment */

Color

  • color: The color property is applied to text inside an element.
  • background-color: html elements are treated as if they are in boxes. By default these are white. This property affects the background color of the box.
  • opacity, rgba
  • hsl, hsla

CSS syntax for Red, Green and Blue

rgb(#,#,#)

Websites we will look at in class for investigating color:

Text

  • serif
  • sans-serif
  • monospace
  • weight
  • style
  • stretch
  • cursive
  • fantasy
  • font-family
  • font-size
    • pixels
    • percentages
    • ems

More Fonts

  • @font-face
    • font-family
    • src
    • format
      • eot
      • woff
      • ttf/otf
      • svg
  • font-weight
    • bold
    • normal
    • font-style
    • normal
    • italic
    • oblique
  • text-transform
    • uppercase
    • lowercase
    • capitalize
  • text-decoration
    • none
    • underline
    • overline
    • line-through
    • blink
  • line-height
  • letter-spacing
  • word-spacing
  • text-align
  • vertical-align
    • baseline
    • sub
    • super
    • top
    • text-top
    • middle
    • botton
    • text-bottom
  • text-indent
  • text-shadow

About

CSS Class

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published