📝 Core 1 Interaction Week 10 Notes —

Harmonic Collection Show and Tell

Please paste your most recent entry below

📝 Notes, Positioning with CSS

Here are some basic principles.

When you’re creating CSS layouts, you’ll often position things with one of 5 terms:
  • static
  • relative
  • fixed
  • absolute
  • sticky

You address this in the following manner:
div {
position: static;
}


To follow along, create an HTML document…

<!DOCTYPE html>
<html>
<head>
  <link rel="stylesheet" href="main.css">
</head>
<body>
  <h1 class="title">Hello</h1>
  <div class="static">
  </div>
  <div class="relative">
  </div>
  <div class="absolute">
  </div>
  <div class="fixed">
  </div>