Forums

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?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #264523
    shalciau
    Participant

    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;

    #264525
    Paulie_D
    Member

    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.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.