Currently, I have been delving into the world of Responsive Design. However, I am encountering some difficulties in positioning my content centrally when the screen size increases.
The issue is as follows:
@media screen and (min-width: 950px) {
body {
margin: 10%;
}
}
Setting the margin to 10% results in only the margin-top
and margin-left
working properly. Unfortunately, this is not the desired outcome as the margin-right
doesn't function at all.
Below is a visual representation of the problem:
With that said, does anyone know how I can rectify this issue?