0
is it possible to give each paragraph or element an ID?
I was saying wondering since it is advisable to have a separate html doc and css doc is it possible to have all my elements/tags have unique ID so my CSS sheet can refer to particular points in the html doc? that way I don't use online CSS for the situations that I deviate from the overall style
2 odpowiedzi
0
Possible
0
Better use class inside an identifier
<div id="container">
<p class="class1"></p>
<p class="class2"></p>
.
.
.
<p class="classN"></p>
</div>
this way you can read and work the css way much better e.g
#container > .class1{
blablabla
}
#container > .class2{
blablabla
}