This markup
<div style="background-color: red;">
abcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcd
</div>
works properly when the browser window is wide enough, but when I make it smaller to see the horizontal scrollbar, the background color is applied only to the visible part:

Can this be fixed?
try it with
position:absolute;EDIT :
or with
display:inline;