Create a fixed and non-scalable web page

I need to make my web page non-scalable so that divs do not collide with each other or overlap. A good example is the stackoverflow site. In the case where the user is scaled on the web page, the div should be in its original position.

enter image description here

When scaling is still fixed.

When zoomed

What changes need to be made to CSS files?

+4
source share
2 answers

You must give the width in px. You should do this as a percentage if you want your layout to stay on the right when you zoom in or out.

+1
source

In your contained elements declare a specific width.

Stack Overflows css, , .

#content {
    width: 1000px;
}

#content ,

#mainbar {
    width: 728px;
}
#sidebar {
    width: 220px;
}

, .

+1

All Articles