Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

How do you assign multiple classes to one div?

0 votes
asked Apr 10, 2020 by Ashrith Annamreddy (410 points)
reshown Jun 18, 2020 by Ashrith Annamreddy

1 Answer

+2 votes
answered Apr 16, 2020 by Husoski (520 points)
selected Apr 17, 2020 by Ashrith Annamreddy
 
Best answer

Put all of the class names in a single class= attribute string separated by spaces:

<div class='class1 class2 class3'> ... </div>

commented Apr 17, 2020 by Ashrith Annamreddy (410 points)
Thank You! :)
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...