I don’t understand what I’m doing wrong, why can’t I remove the underscore from the label? what should be done? how to arrange css?
.blog-flex-item { width: 370px; display: flex; flex-direction: column; justify-content: center; align-items: center; box-shadow: 0px 0px 5px 1px #eaeaea; height: 230px; margin-bottom: 30px; } .blog-flex-item__image { width: 159px; height: 130px; } .blog-flex-item__image img { width: 100%; height: 100%; } .blog-flex-item__title { color: #374049; font-size: 25px; margin-top: 20px; text-decoration: none; } .blog-flex-item:hover .blog-flex-item__title { text-decoration: none; color: red; } <div> <a class="blog_link" href="#"> <div class="blog-flex-item"> <div class="blog-flex-item__image"><img src="http://www.youloveit.ru/uploads/gallery/main/162/pikachu.png" alt=""></div> <div class="blog-flex-item__title">текст</div> </div> </a> </div>
text-decoration: none;Ask for a link, not a div. That is, the element with theblog_linkclass. - Pyramidhead