Dear All
for first node
li:first-child {
background: #ff0000;
}
for last node
li:last-child {
background: #ff0000;
}
for nay number of node (change the 2 with the number of node you want to apply the style)
li:nth-child(2) {
background: #ff0000;
}
Regards
Rashid Imran Bilgrami
If you are looking for define individual node for every css here is a code
for first node
li:first-child {
background: #ff0000;
}
for last node
li:last-child {
background: #ff0000;
}
for nay number of node (change the 2 with the number of node you want to apply the style)
li:nth-child(2) {
background: #ff0000;
}
Regards
Rashid Imran Bilgrami
Comments
Post a Comment
Thanks for the Comments , Your review will display soon