0
# or .
When do use them ??
5 ответов
+ 3
in css # is used to refer to an "id" of an element.
and . is used for referring to a class.
<div class="text_wrapper">
<div id="text">
....
</div>
</div>
note:remember, ids are usually used in inner elements...but then again, its up to the situation....
have a nice day.
+ 3
with # selector you can select an element by it's id. it means you can only select one element in the document.
the '.' selector is for select a whole class. it can be one or more elements.
see this example:
https://code.sololearn.com/WIdszAQCm9Ju/#css
+ 2
Example: I use a div What do i say before a .or a #
+ 1
. is for an id and # for a class css??? this is code specific
0
What???
be more specific pls.