Register to get access to free programming courses with interactive exercises

Intro CSS: Positioning

One of the most important parts of creating any website is positioning elements on the page. This affects how users will see the page, in particular with regards to where to look, will be seen first, and what elements are the most important.

Positioning itself is about controlling the position of an element along the x, y, and z axes, and all the tools that exist in CSS for positioning are designed to do just that. If you look at each topic from this perspective, then it'll be much easier to apply your knowledge.

In this course, we'll take a look at some basic positioning features that have been well known for many years, such as the position, float, and z-index properties. A few more fundamental rules for dealing with positioning appeared with the advent of CSS3. These concepts were Flex and Grid, which will be discussed in separate courses since there's a lot to get through.

Practice

Many of the lessons in this course will have practice with the web view. Try not to simply do the task, but rather when you're done, have a go and experiment a little with the code and the features you've learned.

You'll encounter "Do it yourself" sections throughout the course. This is an additional tasks for you to practice. They'll also offer code examples for you to study.

CodePen

Another opportunity to apply the skills you've learned in the course is to use CodePen. You can create your own pen, and experiment with positioning inside it.

Also, in each lesson in the course, there'll be examples loaded from CodePen. They're available for review, and you can make edits in real-time and monitor the result. Don't miss out on this opportunity.

Make sure you practice constantly, as it'll mean that your skills with positioning elements will allow you to effortlessly decide where and how to position elements in a real working task.


Are there any more questions? Ask them in the Discussion section.

The Hexlet support team or other students will answer you.

For full access to the course you need a professional subscription.

A professional subscription will give you full access to all Hexlet courses, projects and lifetime access to the theory of lessons learned. You can cancel your subscription at any time.

Get access
130
courses
1000
exercises
2000+
hours of theory
3200
tests

Sign up

Programming courses for beginners and experienced developers. Start training for free

  • 130 courses, 2000+ hours of theory
  • 1000 practical tasks in a browser
  • 360 000 students
By sending this form, you agree to our Personal Policy and Service Conditions

Our graduates work in companies:

Bookmate
Health Samurai
Dualboot
ABBYY
Suggested learning programs
profession
Development of front-end components for web applications
10 months
from scratch
Start at any time
profession
Layout with the latest CSS standards
5 months
from scratch
under development
Start at any time

Use Hexlet to the fullest extent!

  • Ask questions about the lesson
  • Test your knowledge in quizzes
  • Practice in your browser
  • Track your progress

Sign up or sign in

By sending this form, you agree to our Personal Policy and Service Conditions
Toto Image

Ask questions if you want to discuss a theory or an exercise. Hexlet Support Team and experienced community members can help find answers and solve a problem.