What's causing this issue?
Here's my code snippet:
<div class="center">
<div class="line">
text
</div>
<div class="line">
text2
</div>
<div class="line">
text3
</div>
</div>
In my css file:
.line {
display: inline-Block;
width: 150px;
}
.center {
margin: 0 auto;
}
Why isn't the .center
CSS rule working as expected? I want it to be centered on my screen, but it's aligning to the left corner instead.