Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Position fixed images problem

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #186282
    katamail
    Participant

    Hi!

    I have a position fixed background and 2 position fixed images, the vertical menu and a middle container are both position absolute so they scroll up-down along with the website, problem is that the 2 fixed images are changing position when I view the website in differents screen size.
    Is there a way to keep those 2 images always in the same position no matter the screen size?

    my CSS code:

    h3 {
    position: fixed; /* image 1 tag */
    left: 1060px;
    top: 200px;
    }

    h5 {
    position: fixed; /* image 2 tag */
    left: 1060px;
    top: 450px;
    }

    Thank you
    Max

    #186287
    Paulie_D
    Member

    We need to see a demo…ideally in Codepen.io as it’s hard to get an accurate understanding of what you are trying to do based on a vague description.

    I would say thought that more than one fixed position item is probably overkill….but, again, it depends on what you are doing.

    Does this image/content need to be on the page all the time?

    #186288
    katamail
    Participant

    yes, I whould need to have them sticky to the same position all the time, they both are on the right of the middle container

    #186289
    Paulie_D
    Member

    Still need to see it….if you posted a Codepen demo (or link)…it didn’t work.

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