How do I remove the bullets from the list items?

0 views
Skip to first unread message

Vijayeta Meher

unread,
Dec 7, 2015, 7:22:59 AM12/7/15
to LESS - Leaner CSS
Suppose I have 9 list items

<li>A</li>
<li>B</li>
<li>C</li>
<li>D</li>
<li>E</li>
<li>F</li>
<li>G</li>
<li>H</li>
<li>I<li>

I need to remove the bullets from list item 1 ,2 and 9.
How do I remove it?

My current Approach

.listitem(1);
 .listitem(3);


.listitem(@i){
       &:nth-child(@{i}){
         list-style-type: none;
       }
       &:last-of-type{
         list-style-type: none;
       }
     }

This is not working for me.

Can someone suggest any other approach?
Reply all
Reply to author
Forward
0 new messages