Currently in the process of developing a responsive website, I have encountered an issue with excess empty space appearing on the right side when scrolling horizontally. Utilizing overflow-x: hidden
successfully eliminates the horizontal scroll; however, this solution is not compatible with mobile devices such as iPhones and iPads.
In attempt to resolve this problem, I experimented with implementing min-width
, which proved effective in eliminating the excess space. Nevertheless, directly adding min-width
values (e.g. min-width:1000px;
) in full.css would cause conflicts with the full-width design. Below is an example:
full.css
#wrapper {
width: 1000px;
margin: 0 auto;
}
responsive.css (less than 1000px)
#wrapper {
width: 100%;
margin: 0;
}
I am seeking advice on how to effectively address this issue. Please share any alternative solutions or recommend if a new wrapper ID should be created for this purpose.