1 result forlearn-basic-css-by-building-a-cafe-menu - Step 51

How to add two classes in a same css line

All you need to do is put a space between each of the class names.
Example:
<h1 class="class1 class2"></h1>

Just in case you meant it the other way, I’ll add to @MCRBLX

All you have to do is comma seperate it like this

class1,
class2 {
  /* some CSS */
}
4 Likes

Oh wait I didn’t read the word “CSS”. My bad! :sweat_smile: