The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › How to make object sticky when resolution is changing?
I can’t find issue, what to do, that my 2 objects not moving. Now when i changing resolution, they floating to both sides. This objects are in header on both sides of logo.
.shape1 { left: 818px; position: absolute; top: 0px; }
.shape2 { right: 818px; position: absolute; top: 0px;
Absolute positioning is a very poor method of laying out webpages.
It is extremely inflexible and there are much better and more responsive options. Check out LearnLayout.com
Absolute positioning is just that…absolute…it tells something to be exactly 818px left/right and it will do that regardless of screen size.
Check out the link I gave you…there is always a better way than positioning.