#x
, whatever you write in a class selector .y
if it pulls the styles from the id-selector, they will take precedence over the class selector. No items should have priority over others. Which is easier to edit styles.the <ul>
<li id="1" class="product"></li>
<li id="2" class="product"></li>
<li id="3" class="product"></li>
<li id="4" class="product"></li>
<li id="5" class="product"></li>
<li id="6" class="product"></li>
</ul>
Find more questions by tags CSSWeb Development