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

Home Forums CSS Trying to get background image to fit

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #269809

    I am trying to get my background image to fit screen without stretching it. My image rotates every time my website is shown.

    Any help would be greatly appreciated.


    There isn’t a background-image and nothing that would imply rotation. We can’t comment on something we can’t see. Please edit your pen so that is shows the actual problem.


    hmmm…I can’t see what you’re talking about because there’s no example. But I have an idea of what you may be saying. Try using this in your CSS for the background image:

    #background {
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0px;
    top: 0px;
    z-index: -1;

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