Forums

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

Home Forums CSS background attachment:fixed not working in chrome

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #170253
    vipin10agarwal
    Participant

    ssc.mvestor.com
    this is website
    Chrome – Background Images in #home and #contact disappear when scrolling up – this works fine in Firefox

    #170255
    Atelierbram
    Participant

    It’s the fixed position of the video that’s getting in the way, when you would change the position to relative, then it will work:

    
    #services-video-wrap {
      position: relative;
    
    #170257
    vipin10agarwal
    Participant

    but my dear friend i want video in background and home image is fixed u see website in firefox i want this fixed background in chrome

    #170258
    Atelierbram
    Participant

    Now withbackground attachment:fixed the background-image is fixed with respect to the viewport– not the element with which the image is associated. That will work, but for some reason this fixed positioned element is getting in the way. Maybe try putting it in the HTMLmarkup after the #home section, or even within this section giving that one position: relative and then using z-index: -1 on the video will do the trick in Chrome, but you will have to try this out to see if it is working.

    P.s. in Firefox I don’t get to see the video at all, …

    #170262
    vipin10agarwal
    Participant

    not working me friend still same issue

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