I can not simply make a line because, depending on the page, instead of one line, it will continue on another line.
I can not simply make a line because, depending on the page, instead of one line, it will continue on another line.
Would not it be better to use HR
to do this?
hr{
border-color:#aaa;
box-sizing:border-box;
width:100%;
}
<hr/>
If necessary, format as desired, so that it is similar to underline
. You can also use Width: 100% to make sure you're responsive.
You could use the <hr />
or the border-bottom
tag in a div
#linha {
width: 100%;
border-bottom: 1px solid #000000;
}
<div id="linha">
conteudo da div
</div>
<div>
conteudo da div
</div>
<hr />
<div>
conteudo da div
</div>