I have a nested list and I want to make child items normal font only for example parents should be bold 20, child should be bold 17 and sub child items should be normal 17px.
I tried by in my case sub child items also appear as bold, I tried few different but it breaks one of the things.
I want to make parent items bold 20 and if it has nested list then second level will be bold 17
otherwise it should be normal 17
of a child doesn't have child items
https://jsfiddle.net/mk0d3jw8/3/
- List item 1 (BOLD 20)
- Subitem 1 (BOLD 18)
- Sub Subitem 1
- Sub Subitem 2
- Sub Subitem 3
- Sub Subitem 2
- Subitem 2
- Sub Subitem 1
- Sub Subitem 2
- Sub Subitem 3
- Sub Subitem 2
- Subitem 1 (BOLD 18)
- List item 2 (BOLD 20)
- Subitem 1
- Subitem 2
- Subitem 3
- Subitem 2
- List list 3 (BOLD 20)
- Subitem 1
- Subitem 2
- Subitem 3
- Subitem 2
CSS
.directory-w ul
{
list-style-type: none;
margin: 0;
padding: 5px;
margin-left:30px;
}
.directory-w ul li{ color:#757575; font-size:20px;}
@media (min-width:768px){
.directory-w > ul {
columns: 2;
-webkit-columns: 2;
-moz-columns: 2;
}
}
.directory-w > ul > li > ul > li {font-weight:bold;}
.directory-w ul ul li {list-style-type: disc; font-weight:normal; font-size:15px;}
.directory-w ul li li {list-style-type: disc;font-weight:normal; font-size:15px;}
.directory-w ul > li > ul > li > ul > li {font-weight:normal !important;}