Is it possible to assign multiple classes to a single HTML
container?
Something like:
<article class="column, wrapper">
To specify multiple classes, separate the class names with a space, e.g. <span class="left important">. This allows you to combine several CSS classes for one HTML element.
It's possible to assign multiple classes to an element by setting the value of the element's class attribute to be the names of the classes, separated by spaces.
To define multiple classes, separate the class names with a space, e.g. <div class="city main">. The element will be styled according to all the classes specified.
Any HTML element can have as many different classes as needed to style the element using CSS effectively. To assign multiple classes to a single HTML element, you need to specify each class name inside the class attribute separated with a blank space.
Just remove the comma like this:
<article class="column wrapper">
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With