+ 4
Class cannot be used in Div tag? Why
like this <div class=some name> and in css .some name{properties } not working why?
13 RĂ©ponses
+ 15
class = "some name"
Use of the quotation marks is key
+ 8
Don't use space for style class name, if there's a space in the class specification browser will think you're setting multiple classes for the div element.
+ 8
If you can show us your code then it will be easy for us to help.
+ 7
I think spaces are not allowed in naming a class
+ 3
seeing a lot of helping hands in this community shows I am right where I should be. awesome
+ 2
Nice to be in this community.
+ 1
Write class name in double cot in div tag
It will definately work
+ 1
this is not right the way to assign name for the class you can use these mentioned formates please see inside the code.
https://code.sololearn.com/WBG31v43vE40/?ref=app
+ 1
Spaces aren't allowed and use quotation marks with class name while using div tag
Example:
IN HTML:-
<div class="somename">.....</div>
And IN CSS:-
.somename{ properties}
0
delete space in class name and add double cot
0
class can be used in div tag.If you are unable to do that it means you are making a mistake.
0
here you have not used quotation marks like this <div class="something">
0
yes like thes if the name have 2 words delete space or add (_) between words