• jollyyau

Week 7: CSS


Coding is like Russian dolls. There is a big box containing smaller boxes, which has smaller boxes.

# is an ID. But you can only use it once. It’s good for stuff that only repeats once, such as the layout.

. is a class. You can repeat it many times. It’s good for stuff that repeats many times, such as smaller elements.

#container = wrapper = transparent box on the side to structure

Selectors:

HTML:

<body>

</body>

CSS:

body {

}

Margins:

50, 80, 50, 80

Left, top, right, bottom

“auto” = same on both sides

“margin: 0 auto” = just to position the container in the middle


2 views

jollyyau.design © 2020

  • LinkedIn - White Circle
  • Facebook - White Circle
  • Instagram - White Circle