Answer the question
In order to leave comments, you need to log in
Why is text alignment not working in chrome?
In Firefox Developer, Mazile - everything works.
Google aligns only h1
The rest don't work, what's the problem?
.article h1, .article h2, .article_img {
text-align: center;
}
<div class="article">
<h2>Статья 1</h2>
<p class="article_img">
<img src="images/article_1.png" alt="Статья 1" />
</p>
<p> Превью..</p>
<p>
<a href="article.php?id=1">Читать дальше</a>
</p>
</div>
Answer the question
In order to leave comments, you need to log in
Ctrl+F5 with clearing the cache - everything helped element.style {
} appeared)
Your "preview" is not in the article_img class.
<p class="article_img">
<img src="images/article_1.png" alt="Статья 1" /><br>
Превью...
</p>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question