Forums

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

Home Forums CSS CSS Fixed Background, Only on X-Axis

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #32053
    Cybernws
    Member

    Hello,

    I know this isn’t possible in CSS, but is there a way to use the “position: fixed;” principle on a background image exclusively on the X-Axis?

    I thought there might be a JavaScript solution if I crammed the background image in a DIV,
    but I don’t want my page to exceed 1000px page content width. Since my background image is far wider than that, I’m asking this question here.

    I hope some of you CSS/JS guru’s could give this poor lad a hand! Thanks!

    Cheers!

    Cybernws

    #55185
    Cybernws
    Member

    Hello,

    Let me rephrase my question: Is there a way to fix a background image only on the x axis, so the image would move on y axis and stay put on the x axis?

    So the background image would not move when you scroll a website horizontally, but would move if you scroll vertically.

    Thank you very much for commenting!

    Cheers,
    Cybernws

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