Skip to content

Learn CSS for Free: Beginner Course with Live Editor (English and Arabic)

NeedMyTools Academy

Start free: sign in first

One free account opens every full lesson, the graded tests, your progress on any device and a certificate of completion. Sign in with an email code or Google in under a minute.

  • Full lessons and exercises
  • Graded tests that unlock the next lesson
  • Certificate with a QR code anyone can verify
Sign in or create a free account

Free forever. No card, no paywall.

Already signed in? The same button opens your panel.

Just looking? Each lesson shows a short preview without an account.

CSS turns plain HTML into pages people enjoy using. This course starts with how CSS decides which rule applies, then builds up to the layout tools every front end developer uses daily: the box model, Flexbox, Grid and responsive design. Because many of our learners build sites in Arabic, it also teaches right-to-left layouts properly, not as an afterthought. Every lesson has examples you can edit and run on the page, an exercise that checks your CSS, and a quiz.

Quick answer

Learn CSS in this order: selectors and the cascade, then colours, units and fonts, then the box model, then Flexbox and Grid for layout, then responsive design with media queries, then logical properties for Arabic and other right-to-left languages. You need basic HTML first; the HTML course on this site covers it.

Level:
Beginner, after HTML
9 lessons
About 4 hours plus practice
Content checked on 5 November 2026
0 of 9 lessons done on this device
Start the course

Lessons

  1. 1How CSS works: selectors and the cascadeAdd CSS to a page with a stylesheet, a style element or a style attribute, and know which to use · Write type, class, ID, attribute, descendant and child selectors · Predict which rule wins using specificity and source order · Tell inherited properties from those that are not inherited20 min
  2. 2Colours, units and fontsWrite the same colour as a keyword, hex, rgb() and hsl(), with or without transparency · Check that text and background have enough contrast to read · Choose between px, rem, em, %, vw and ch for each job · Build a font stack for English and Arabic with a safe fallback20 min
  3. 3The box model and spacingName the four layers of a box and set each one · Calculate how wide a box really is, with and without border-box · Explain margin collapsing and centre a block with auto margins · Tell block, inline and inline-block boxes apart20 min
  4. 4FlexboxTurn any element into a flex container and explain the main and cross axis · Align and centre items with justify-content, align-items and gap · Build rows that wrap on phones and items that grow with flex · Predict how a flex row looks in an Arabic right-to-left page25 min
  5. 5CSS GridCreate a grid with columns, rows and gaps using fr, repeat() and minmax() · Build a responsive card grid in one line with auto-fit · Make items span several columns or rows and place them on grid lines · Lay out a whole page with named grid areas that also work in Arabic25 min
  6. 6Responsive design and media queriesAdd the viewport meta tag and explain what breaks without it · Make images and boxes flexible so nothing scrolls sideways at 320 pixels · Write mobile-first media queries and pick breakpoints from the content · Scale headings with clamp() and respect user preferences such as reduced motion25 min
  7. 7Logical properties and RTL layoutsSet page direction correctly with the dir attribute, not with CSS · Explain the inline and block directions and how they map to left, right, top and bottom · Replace physical margins, padding, borders, positions and text alignment with logical ones · Mirror only the icons that point a direction, and keep numbers and code left to right25 min
  8. 8Transitions and animationWrite transitions with a property, duration, easing and delay · Move, resize and rotate elements with transform without shifting the layout · Build a keyframe animation and control how often and how it repeats · Respect reduced motion settings and the WCAG rules on moving and flashing content25 min
  9. 9Project: style the bilingual business pageOrganise a stylesheet with custom properties and a clear order of sections · Combine Flexbox, Grid and media queries into one responsive page · Make one stylesheet serve the English and the Arabic version · Check a finished page for contrast, focus, reduced motion and a 320 pixel screen50 min

NeedMyTools Academy

Sign in with a free account (email code or Google, no password) to open every lesson in full. Each lesson ends with a short test graded on our server, and the next lesson only unlocks after you pass. Pass the module tests, the final project and the final exam to get a certificate of completion with a transcript that anyone can check on this site. Without an account you can read a short preview of each lesson.

How grading works

  • Each lesson: pass the exercise (checked on our server), then a 5-question test with 4 correct. The test opens after you have spent some time on the lesson.
  • Three fails in a row lock that test for 30 minutes. Leaving a test unfinished counts as a fail.
  • Each module ends with a 10-question test (7 to pass, 3 tries a day). The course ends with the project and a 25-question final exam (18 to pass, 3 tries a day).
  • Questions are drawn at random and many have values that change for every student, so sharing answers does not help.
  • The certificate says what it is: a certificate of completion for an unsupervised online assessment, not a degree or an accredited qualification.

What you will be able to do

  • Write clean CSS and predict which rule wins in a conflict
  • Use colours, units and fonts that stay readable and accessible
  • Control spacing precisely with the box model
  • Build page layouts with Flexbox and Grid that adapt to phones
  • Make one stylesheet work for both English and Arabic pages

Who this course is for

Anyone who has written a few HTML pages and wants them to look good on every screen: students, people changing careers, shop owners building their own page and developers who learnt CSS by copying snippets. You need a computer or phone with a modern browser; a keyboard makes the exercises easier.

What you will build

The course ends by styling the bilingual business page you built in the HTML course, so your portfolio shows the same project growing from structure to a finished design. Along the way, each lesson’s exercise styles a small real-world piece: a cafeteria menu, an offer card, a navigation bar, a pricing table. The pieces are short on purpose, so you can finish one in a sitting and see a visible result.

How the CSS exercise checks work

When you press "Check my code", your browser reads the CSS inside your `<style>` element as text, without applying it to our page, and tests it against the lesson’s rules, such as "the `.card` rule has a border with a style" or "the font stack ends with a generic family". Each rule turns green or red so you know exactly what to fix. The checks look for the technique the lesson teaches, not one exact answer, so different colours, sizes and selectors that do the job all pass.

Right-to-left from the start

Most CSS courses are written for left-to-right English and leave Arabic layouts to guesswork. Here, examples show both directions where it matters, and the course teaches logical properties such as `margin-inline` and `padding-inline-start`, which flip automatically when a page is set to `dir="rtl"`. Write your stylesheet that way and the Arabic version of a site needs almost no extra CSS.

Where the facts come from

CSS is defined by W3C specifications, and the most trusted guide is MDN Web Docs. Each lesson lists the exact pages we checked and the date we checked them. Browser support for the features taught here is broad in current Chrome, Edge, Safari and Firefox; where a feature is newer, the lesson says so.

After this course

  • JavaScript · LiveThe language of the web: values, functions, the DOM, events, async code and fetch.
  • TypeScript · LiveTypes for JavaScript: catch mistakes before the code runs.
The learning path

Questions about this course

Do I need to know HTML before learning CSS?

Yes, the basics. CSS styles HTML elements, so you need to know what headings, paragraphs, links, classes and IDs are. The free HTML course on this site covers everything this course assumes.

How long does it take to learn CSS?

The basics in this course take a few weeks at one lesson a day. Getting comfortable with layout takes practice on real pages, so build small projects alongside the lessons rather than only reading.

Should I learn Tailwind or Bootstrap instead of CSS?

Learn CSS first. Frameworks are shortcuts for writing CSS, and when something looks wrong you need to understand the CSS underneath to fix it. Once you know the box model, Flexbox and Grid, any framework takes days to pick up.

Is this CSS course free and in Arabic?

Yes. Every lesson is in English and Arabic, and the lessons, editor, exercises and quizzes are free. A free account opens the full lessons and records your progress.

What editor should I use for CSS on my own computer?

Any plain text editor works. Visual Studio Code is free, popular and has CSS autocomplete and colour previews. Keep the browser’s developer tools open next to it to see which rules apply.

Code examples stay in English and run in a sandbox on your device. If you spot a mistake, tell us through the contact page.