0

# or .

When do use them ??

16th Dec 2016, 2:58 PM
Tom Haas
5 Answers
+ 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.
16th Dec 2016, 3:19 PM
Zameel Haneef
Zameel Haneef - avatar
+ 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
16th Dec 2016, 3:26 PM
Sadegh Shaikhi
Sadegh Shaikhi - avatar
+ 2
Example: I use a div What do i say before a .or a #
16th Dec 2016, 3:12 PM
Tom Haas
+ 1
. is for an id and # for a class css??? this is code specific
16th Dec 2016, 3:16 PM
Luke Sloop
Luke Sloop - avatar
0
What??? be more specific pls.
16th Dec 2016, 3:11 PM
Sadegh Shaikhi
Sadegh Shaikhi - avatar