CSS first-child and last-child
In the following list the 'first-child' and 'last-child' pseudo classes are used to target the first and last item in the list to make them appear bold.
- Home
- Contacts
- Products
- Services
- News
- Events
The CSS used is:
li:first-child{
font-weight:bold;
}
li:last-child{
font-weight:bold;
}