Forums

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

Home Forums CSS Parallax problem

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #186635
    mika
    Participant

    Hi guys,

    i’m building this concrete5 site which uses Bootstrap theme. Now I try to add parallax effect into it.

    Everything works quite nice but my parallax background image does not work as i would like in tablets and mobile –> background repeats ithelf..

    How do i fix this?

    Demo site is here -> testi4.aada.fi

    This is the code i use for backgrounds:

    #prevex {
        background: url('/packages/bootstrap/themes/bootstrap/images/prevex_medium_img.jpg') repeat fixed 50% 0px transparent;
        background-position: 50% -145.75px;
        background-size: 100%; 
        height: auto;
        margin: 0px auto;
        width: 100%;
        position: relative;
        padding: 200px 0px;
    }

    // Mika

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