Flexbox: To-Do App

In this project, where is ‘square’ class in html code??

I only found 'taks square’s and 'day square’s

https://www.codecademy.com/paths/web-development/tracks/getting-more-advanced-with-design/modules/layout-with-flexbox/projects/flexbox-on-platform

This element:

<div class="task square">

has two classes - task and square.

1 Like

Then writing “hello wrold” has two classes both hello and square??

Element with this attribute:

class="hello world"

would have two classes - hello and world, yes.

1 Like

Really thanks to your reply @factoradic!

2 Likes

You’re very welcome :slight_smile:


So if we have this element:

<div class="task square"></div>

And this is the content of our stylesheet:

.square {
    width: 100px;
    height: 100px;
}

.task {
    background-color: red;
}

Then the element will be a red square.

2 Likes