Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiple pins within same container not working #47

Open
line32 opened this issue Jun 30, 2016 · 0 comments
Open

multiple pins within same container not working #47

line32 opened this issue Jun 30, 2016 · 0 comments

Comments

@line32
Copy link

line32 commented Jun 30, 2016

Code is below. It will pin my .one element, but ignores my attempt to pin .two and .three

<style type="text/css">
    .one, .two, .three { 
        width: 100%;
        height: 500px;
        background-size: 100% auto;
        position: relative;
    }
    .one {
        z-index: 1 !important;
    }
    .two {
        z-index: 11 !important;
    }
    .three {
        z-index: 111 !important;
    }
</style>
<div class="mymain">
    <div>
    This is a nav section.<br />
    </div>
    <div class="main">
        <div class="one " >
            <h2>Section 1</h2>
            <p>Lorem ipsum dolar sit amet. Lorem ipsum blah blaah.</p>
            <p>Lorem ipsum dolar sit amet. Lorem ipsum blah blaah.</p>
        </div>
        <div class="two " >
            <h2>Section 2</h2>
            <p>Lorem ipsum dolar sit amet. Lorem ipsum blah blaah.</p>
            <p>Lorem ipsum dolar sit amet. Lorem ipsum blah blaah.</p>
        </div>
        <div class="three">
            <h2>Section 3</h2>
            <p>Lorem ipsum dolar sit amet. Lorem ipsum blah blaah.</p>
            <p>Lorem ipsum dolar sit amet. Lorem ipsum blah blaah.</p>
        </div>
    </div>
</div>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.0.0/jquery.min.js"></script>
    <script src="http://enterprise.blob.core.windows.net/microsoftcloud/pih/jquery.pin.js"></script>
    <script>


    $(".one").pin({containerSelector: ".main"})

    $(".two").pin({containerSelector: ".main"})
    $(".three").pin({containerSelector: ".main"})

    </script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant