Skip to content Skip to sidebar Skip to footer

Min-width In Page Body Not Working

I have set a minimum width of 767px on my website to avoid everything to be shrunk when viewing the website on a smartphone. The issue is that is that it doesn't seem to be taken i

Solution 1:

You've got a lot of things positioned absolutely. For that to work correctly you need to have them contained in an item with relative positioning. Yep, even the body tag, apparently.

body {position: relative}

Solution 2:

You also need to give it width: 100% only then min-width kicks in

Post a Comment for "Min-width In Page Body Not Working"