I'm trying to put this <hr>
and text at the bottom of the page, so once the page loads it will stay at the bottom of the page even if I open developer tools in the browser.
It looks like this:
My code is currently like this:
<div class="container body-content">
@RenderBody()
<hr />
<footer>
<p>© @DateTime.Now.Year</p>
</footer>
</div>
I've tried wrapping hr
and footer
in a div
, giving it id
and css style
#footer {
position: absolute;
bottom: 0px;
}
but it causes <hr>
to shrink from current width to the width of text date below it. If I add width: 100%
in css, <hr>
extends all the way to the right side of the screen, meanwhile I want it to be same as the current width. I've also tried giving wrapping <div>
class="container"
which almost do the job, but then it moves text a bit to the right, so it's not aligned with the text fields and submit button. How can I solve this?
` and ` – Ryan C Sep 26 '18 at 15:05
` and ` – Rick Jabels Sep 26 '18 at 15:28