Coddy logo

Explore

Categories

Programming language

Explore courses by programming language.

Course type

Learn, challenge or build your portfolio in a practice-driven way.

Level of knowledge

Choose courses tailored to your level of knowledge perfectly.

Or try to search for any course. Still can't find? let us know what are you missing!

Daily Challenge

search
menu icon
Loading...Creator image

Creator

Anonymous

How to Center Div or Text using CSS

In this course we will explore and answer one of the most wanted questions in CSS - How to center div or text?

9 Lessons

8 Challenges

Prerequisites

HTML Fundamentals

Basic CSS syntax

Introduction

What is this course?

Center Div

Margin Auto

Position Absolute - Translate

Position Absolute - Margin

Flex Box

Recap Challenge

Center Text

Text Align

Flex Box

Final Challenge