Lab 3: Positioning & Responsive Grid

Part 1: Positioning

Relative positioning shifts an element from its normal spot without breaking the flow:

Relative Box

Absolute positioning places an element relative to its parent container:

Absolute Box

Fixed positioning stays glued to the browser window even when scrolling:

Fixed Box

Part 2: Z-Index & Responsive Columns

Z-index controls which overlapping element appears on top:

Z-Index 1
Z-Index 2

3-Column Responsive Layout

Resize your browser window to see these columns collapse from 3 down to 2, and then to 1.

First Column

computer coding

Building multi column layouts is a lot easier with CSS Grid because you can define rows and columns cleanly.

Media queries handle the responsive breakpoints when the screen gets smaller.

Second Column

a cat

Testing across different screen sizes makes sure text doesn't overflow or break alignment.

Keeping code clean and semantic helps with accessibility and easy maintenance.

Third Column

aesthetic desk

Running code through validators at the end catches any syntax mistakes before submission.

Everything links back properly to your main student page index.