When adjusting the size of the browser window, I noticed that the space after the element is reduced. I would like to decrease the space equally on both the left and right sides, similar to how it is done on Facebook.
Below is the code I have:
CSS:
body{
margin-left:10%;
margin-right:10%;
}
HTML:
<body>
Some content
.
.
.
.
</body>
Initially, I considered setting a min-width
for the body element. However, this could cause issues on computers with smaller screens. Moreover, using min-width
may not be the most effective solution.