<body>
<div>content 1</div>
<div>content 2</div>
<div>content 3</div>
</body>
how do i select the last tag without using any id or class. I have already tried:
body:last-child {
clear: both;
background-color:red;
}
Please help
Thank you
but it's this is css3 so the browser (ipad safari) does not recoginsed it.
body:last-child selects a body tag that is the last child of its parent, try
body > :last-child
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With