html - element:last-child effects all the element and not only last -


im trying remove border-bottom last element, affect elements.

this have now.

html

 <div class="cv-content">     </div>      <div class="cv-content">     </div> 

css

 .cv-content{     width:400px;     float:left;     border-bottom:1px solid #ccc; }         .cv-content:last-child{         border-bottom:0px solid #ccc; }    

http://jsfiddle.net/fccwg/

every .cv-content is :last-child of .cv-item. use .cv-item instead:

.cv-item:last-child .cv-content { 

http://jsfiddle.net/fccwg/1/


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -