I have implemented a CSS code to add a shadow effect to the top part of my webpage, similar to what Facebook does on user profile pages. While this works well for shorter pages, I am encountering issues with longer pages where the shadow extends too much and covers parts of the content. I have tried setting specific height values, but that only creates unwanted dividing lines.
Here is the code I am currently using:
background: black;
background: -moz-linear-gradient(top, black 0%, #f0f2f5 10%);
background: -webkit-linear-gradient(top, black 0%, #f0f2f5 10%);
background: linear-gradient(to bottom, black 0%, #f0f2f5 10%);
Does anyone have any ideas on how to resolve this issue? Any help would be greatly appreciated!