So, here is my problem. I'm making a website, and my HTML file just refuses to work with classes. Here is my html code and CSS :
.card {
width: 400px;
margin: 0 auto;
}
<div class="card">
<img src="img/paarthurnax.jpg" alt="Sorry, we have troubles with connection">
</div>
Image does not line up properly when class is used. Interestingly, if i substitute ".card" with simply "div", it works.
But it refuses to work with classes. I also tried doing it with different datatypes, like paragraph, title and lists, and classes still don't work. I tried looking into possible "grammar" mistakes, but in tutorial video i watched, it used same code, letter-to-letter and it worked. Brackets' latest version was used to write code, if it can help.