.demo{
overflow:auto;
}
<div class="demo">
<p>Some Text Here<P>
</div>
This piece of code displays the first part of the text like this, and you can then scroll down to show 5 and 6:
1
2
3
4
But I want it to display the last part of the text like this, which you can then scroll up to show 1 and 2:
3
4
5
6
How can I control it to display the end of the text?
.demowill have a height and display a vertical scroll bar, and you want the initial position of the scroll bar to be at the bottom instead of the top of the content window. I think you need JavaScript/jQuery for this, CSS alone won't do it.