Z tego co wyczytałem klasy są szybsze niż te wszystkie img, a, li itp... więc jakie rozwiązanie będzie bardziej wydajne.
<div class="comment-avatar"> <img class="comment-avatar-image" src="link.jpg">
<div class="comment-text"> <a class="comment-text-link" href="link">Super User
</a>
.comment-avatar img {
border: 1px solid rgba(0, 0, 0, 0.12);
border-radius: 100%;
}
.comment-text a{
color: red;
}
Czy lepiej będzie tak
.comment-avatar-image {
border: 1px solid rgba(0, 0, 0, 0.12);
border-radius: 100%;
}
.comment-text-link{
color: red;
}