4
I’m trying to put lines next to a word, but when I go into mobile resolution, the lines go up and get misaligned. How do I make them vertically aligned and of the same horizontal length?
First resolution:
Second resolution:
HTML:
<div class="e-mais">
<p>E MAIS</p>
</div>
CSS:
       .e-mais {
            text-align: center;
            font-size: 20px;
            color: #c78b2f;
        }
        .e-mais p:before, .e-mais p:after {
            content: ' ';
            position: absolute;
            width: 5%;
            border-top: 1px solid #c78b2f;
            margin-top: 1.4%;
        }
        .e-mais p:before {
            margin-left: -63px;
        }
        .e-mais p:after {
            margin-left: 5px;
        }
@media (min-width:992px) and (max-width:1199px) {
    .e-mais p:before, .e-mais p:after {
        margin-top: 1.7%
    }
    .e-mais p:before {
        margin-left: -53px;
    }
    .row.escolas {
        margin-top: 46px;
    }
}



post your HTML too please.
– OtavioCapel