Chapter 10: Positioning Elements
A Complete Frontend Developer Textbook for Beginners (2023 Edition)
Published in
10 min readJan 7, 2022
This is the textbook version of Lesson 10 of 100 from the Udemy video course: A Complete Frontend Developer Course for Beginners
← Chapter 9: Box Model Dimensions
Overview
This lesson covers the following HTML tags, CSS properties, and JavaScript commands for the first time:
HTML
None.
CSS
JS
- document.querySelector(“img”).offsetTop
- document.querySelector(“img”).offsetLeft
- document.querySelector(“header”).scrollTop
- document.querySelector(“header”).scrollLeft
This lesson begins with this Codepen. Code along with me to increase retention!
Lecture
Per CSS, we can position our elements in a few different ways.