Okay so lets say I have div1 & div2 in php. Lets say div1 is 10px by 10px.
lets say div2 is 123px by 123px. (may contain image or videos)
When div2 goes directly underneath div 1 (while scrolling down). then the area that div1 covers on div2, turns blue or follows other css styling and only that area, not the whole of div2 gets changed. Apologize for not making sense.
See my illustrations below to get a better understanding.
<html>
<head>
<div id="div1">
<div id="div2">
</head>
<html>
Hope Everything made sense. Let's find a solution!
I have tried many solutions, but none that actually work.
Please post full code or a link to where I can test your demo.