---
title: "Discussion on \"Multiple classes on the same element in  CSS\" | Hashnode"
description: "Discussion on \"Multiple classes on the same element in  CSS\". Recently in an interview, I was asked a question about multiple classes assigned to the same div in CSS. Let's see this in detail.\n\nMany classes can be assigned to the div by the following method. Just separate in class names with spaces like this.\n<..."
url: "https://hashnode.com/posts/multiple-classes-on-the-same-element-in-css/6136f08b766bb761a238148a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Multiple classes on the same element in CSS](https://aakankshadhurandhar.hashnode.dev/multiple-classes-on-the-same-element-in-css?utm_source=hashnode&utm_medium=feed)

Recently in an interview, I was asked a question about multiple classes assigned to the same div in CSS. Let's see this in detail. Many classes can be assigned to the div by the following method. Just separate in class names with spaces like this. <...

Sep 7, 2021 · 2 min read · aakankshadhurandhar.hashnode.dev  
Read the article

-   [#css](https://hashnode.com/tag/css)
-   [#html](https://hashnode.com/tag/html)

## Written by

[Aakanksha Dhurandhar👩‍💻](https://hashnode.com/@AakankshaDhurandhar)

@AakankshaDhurandhar · India

  
[View profile](https://hashnode.com/@AakankshaDhurandhar)

Love to talk about React,javascript

I am frontend developer from India.

## Responses 2

Markdown supported · ⌘↵ to post

[Bhavesh Kumar](https://hashnode.com/@bhaveshkumar96)

[Oct 4, 2022](https://hashnode.com/posts/multiple-classes-on-the-same-element-in-css/6136f08b766bb761a238148a/comment/633c1c60b7a1dcae0588b4ec)

**Interesting\_keep\_it\_up**

[Akhand Patel](https://hashnode.com/@Akhand)

[Sep 7, 2021](https://hashnode.com/posts/multiple-classes-on-the-same-element-in-css/6136f08b766bb761a238148a/comment/613700f0ef28811d8bed637b)

Clear, Concise and Good read
