Css Selector Last Child Code Example


Example 1: css last child


li:last-child {
background-color: lime;
}

Example 2: selecting last child css


p:last-child {
font-size: 0.75em;
}

Example 3: css selector last child


li:last-child {
background-color: lime;
}

Example 4: css last child with class


/*This will only work if the last child of someEID has 
the class .myclassName
if the last child does not have class name us js*/
#someEID .myClassName:last-child {
background: blue;
}

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable