I want to know why JQuery is not applying the border-bottom css property when I apply the addCLass method. It applies the colour but not the border. Why is that? JSFiddle: http://jsfiddle.net/egh7a/
Thanks.
html
<section class="news"> <article>one</article> <article>two</article> <article>three</article> <article>four</article> </section> jQuery
$(".news article:last").addClass("two"); css
.news { border-top: 1px solid #777; } .news article { padding-top: 10px; padding-bottom; 10px; border-bottom: 1px dashed #999; } .two { color: red; border-bottom: black solid 2px; }