Can you help me troubleshoot this?
I have a .social
div
, and I want zero padding on the top for the first one, and no bottom border for the second one.
I tried creating classes for the first and last scenarios, but it seems like something is off:
.social {
width: 330px;
height: 75px;
float: right;
text-align: left;
padding: 10px 0;
border-bottom: dotted 1px #6d6d6d;
}
.social .first{padding-top:0;}
.social .last{border:0;}
Here's the HTML code:
<div class="social" class="first">
<div class="socialIcon"><img src="images/facebook.png" alt="Facebook" /></div>
<div class="socialText">Find me on Facebook</div>
</div>
I'm thinking that having two different classes might not work. Do you have any suggestions on how to achieve this effect?