I have two images: A (700x1500px) and B (700x100px) . I set A as the background image for my page. I would like B to also be some kind of background image, but it draws the top of A.
B cannot be placed at Y <300px per page, so if you are at the top of the page, B may not appear at all on the screen. However, if you are on Y> = 300px per page, B will appear and be closed at the bottom of the browser window. Here is an illustration: the blue box is A , and the red box is B , the green line shows the 300px sign.

This can be accomplished using Javascript, but can it be accomplished using CSS and regular HTML markup?
source share