Jump to content
php.lv forumi

fixed navigācijas problēma


soprano

Recommended Posts

Navigācija izskatās šādi

 

fyplwdw5o3mofzfteli.png

 

 

Kad viņu rullē uz leju izskatās šādi,bet kā dabūt, lai melnais iet arī uz kreiso pusi, ne tikai uz labo?

 

 

tl54sxv2ignt8ry0a58.png

<style>
    #nav {
        display:block;
        padding:0;
        margin:0;
        width:100%;
        background:#000;
        color:#eee;
        
    }

    #nav > li {
        display:inline-block;
        padding:1em;
        margin:0;
    }
    </style>


<ul id="nav" data-0="position:static;"   data-top-top="position:fixed;top:0;" data-edge-strategy="set">
<li>foo</li>
<li>bar</li>
</ul>

un

    window.onload = function() {
        skrollr.init({
            forceHeight: false
        });
    }
   
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...