reading-notes

Class Five Notes

Intro to CSS

Vocab

      by id 
      #id {
           float: left;
      }

   by class selector
       .class selector {
           float: left;
   }

Things to note (CSS basics)1

  selector {
   declaration1: value;
   declaration 2: value
      }

How to insert CSS2

external CSS file should not contain any HTML tags, and there is NO space between the property value and the unit.

<style>
   body {
       declaration:value;
   }
   h1 {
   declaration: value;
   declaration: value;
   }
   </style>

*Note: if multiple styles sheets were defined for the same element, the last style sheet will be used *Note: if multiple style in a page is speified, the priority hierarchy is: inline –> external and internal style sheets –> browser default.

CSS Color amd Property3

Color can be a color description(ex. red, green), a hex(#xxxxxx) value, or RGB (rgb(0,0,255))

Things I want to know more about

How to make the page move according to the display size of my browser?

Back to main page

References

  1. https://developer.mozilla.org/en-US/docs/Learn/CSS/First_steps/What_is_CSS 

  2. https://www.w3schools.com/css/css_howto.asp 

  3. https://www.w3schools.com/cssref/pr_text_color.php