2
I have a div
with a fixed size and containing many large texts within it. I would like that whenever the page that contains it was loaded, it was "focused" (that is, the focus of the page went straight to this div) and automatically the scroll bar of this div was lowered to the end. It is possible to do this just by using html
and css
? If it is not possible, what would be the alternative methods (putting from the simplest possible to the most difficult)? Below I have the code of the page:
<!DOCTYPE html>
<html>
<head>
<title>Página Inicial</title>
<link rel='stylesheet' href='/stylesheets/style.css' />
</head>
<body>
<div class="container">
<p id="message">
<%= message %>
</p>
</div>
</body>
</html>
It worked perfect here. I will apply with the appropriate adaptations. Thank you!
– MonitorLPI