0

How to underline a particular list??

For example if i have to underline first list what should i use

14th Dec 2016, 8:16 AM
Sindhuja.N
Sindhuja.N - avatar
4 Answers
+ 2
if you want only the first item, the CSS is : li:first-child { text-decoration:underline; }
14th Dec 2016, 4:16 PM
Jean-paul Reman
Jean-paul Reman - avatar
+ 1
Define a specific class in your css sheet and use it for your first list : css : .first{text-decoration:underline;} html : <li class="first>
14th Dec 2016, 10:13 AM
Benoit Dassy
Benoit Dassy - avatar
+ 1
so does it means that the solution to this question lies in CSS. if yes then you have to learn CSS.
28th Dec 2016, 4:32 PM
mathew varghese
mathew varghese - avatar
0
Okay thank yu
14th Dec 2016, 4:16 PM
Sindhuja.N
Sindhuja.N - avatar