Note that there are some explanatory texts on larger screens.

plurals
  1. POCSS Fixed-position Nav that slides away at page bottom
    primarykey
    data
    text
    <p>I'm working on my website, <a href="http://www.perezfox.com" rel="nofollow">http://www.perezfox.com</a>, which features a fixed-position navigation menu. I'm happy with how this operates, but there is a problem with vertically-challenged browser windows. Users who scroll to the bottom will see the nav overlapping with the footer because their browsers don't have enough vertical space to accommodate both.</p> <p>Is there a way to "push" the otherwise-static nav menu up as the page bottom approaches? Perhaps specify a distance-to-bottom that will override the position: fixed style? A friend has suggested that I need to monitor the page position and "fire an event", but I'm not sure what that means in practical terms.</p> <p>I'm comfortable with CSS and HTML, but more of a beginning with Javascript and jQuery. Any advice is graciously appreciated, keeping that in mind. For example, you might have to say something to the effect of "put this within a script tag within your site head ..."</p> <p>Thanks in advance!</p> <p>EDIT</p> <p>I found a few examples of this behaviour, but most of them are reversed. For example:</p> <p><a href="http://www.madebyparachute.com/products" rel="nofollow">http://www.madebyparachute.com/products</a></p> <p>On this site, the [left column] navigation elements start scrollable, become fixed. I want to have mine start fixed, become scrollable. Also, this one concerns the top, whereas mine concerns the bottom. But I image it's similar functionality at work, no?</p> <p>I appreciate everyone leaving feedback but after a very frustrating day with this stuff, I must beg and plead that you please, please, don't just throw code at me. I need a bit of instruction, especially if there are script, CSS, and HTML components working in concert. </p> <p>Also, note that I'm using the HTML5 elements for &lt;nav&gt; and &lt;footer&gt;, and not the traditional &lt;div id="whatever"&gt;.</p> <p>Thanks!!!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload