I am facing an issue with two elements on a webpage that are meant to be aligned side by side. The left element is fixed, while the right one has a predefined width and is centered using margin:0 auto
. However, when the screen resolution goes below 1024x800, the elements start overlapping. Is there a solution to this problem? How can I fix it?
-----------------------------------------------------------Edit-----------------------------------------------------------
In fact, the element on the right has a set width and is horizontally centered on the screen using margin:0 auto
. The left element is a vertical menu that needs to stay fixed in its position even when the page is scrolled. To achieve this, I have used position:fixed
.