Menu
Coddy logo textTech

Size and Color

Lesson 3 of 6 in Coddy's CSS Project - Simple Loading Spinner course.

Let's start working on the CSS file - styles.css

challenge icon

Challenge

Easy

Add a 64px width and height to the spinner div, as well as a background color of your choice.

Select the div using its id ("spinner") in the styles.css file.

Try it yourself

<!DOCTYPE html>
<html>
<head>
    <link rel="stylesheet" href="styles.css">
</head>
<body>
    <div id="spinner"/>
</body>
</html>

All lessons in CSS Project - Simple Loading Spinner

2The CSS Project

Size and ColorProject lessonSpin it!Project lessonBorder stylingProject lessonFinal stylingProject lesson

Practice on your own: Web playground