Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><s>I believe you're looking for <a href="http://www.w3schools.com/cssref/pr_pos_overflow.asp" rel="nofollow noreferrer"><code>overflow: auto</code></a> property. Take a look at this <a href="http://jsfiddle.net/uZhq3/" rel="nofollow noreferrer">fiddle</a>.</p> <p>If you want to achieve the scrollbar like on sample image, you'll have to play around with css, <a href="http://css-tricks.com/custom-scrollbars-in-webkit/" rel="nofollow noreferrer">here</a> is tutorial on how to apply custom style to scrollbar.</p> <p>Btw, if you want to make popup window, you might want to look at <a href="http://fancybox.net/" rel="nofollow noreferrer">Fancybox</a>, which, in my opinion, looks really good and most of work is already done! The only downside might be that you have to use it with jQuery, but it's already used on most of the webpages today.</s></p> <hr> <p><strong>Edit</strong></p> <p>When I've looked at page source, I found the problem in less than a minute. The content of your popup div isn't scrolling to the bottom, it stops for some reason.</p> <p>This question is similar: <a href="https://stackoverflow.com/questions/6258178/bottom-content-cutoff-using-overflow-auto-and-jscrollpane">Bottom content cutoff using overflow: auto; and jscrollpane</a></p> <p>Try and put this code in JavaScript console (<kbd>Ctrl</kbd> + <kbd>Shift</kbd> + (<kbd>J</kbd> in Chrome, <kbd>K</kbd> in Firefox):</p> <pre><code>$("#popupLocations .jspPane").css("top","-800px") </code></pre> <p>It scrolls down to the bottom where it should. I know that this doesn't solve your problem just yet, but I think I've found a solution (I'm not sure because I can't test it myself). But if you look at that other question, the solution is using <code>autoReinitialise:true</code>. You can try it right away by running this in JavaScript console:</p> <pre><code>$('.popupLocations').jScrollPane({ showArrows: true, horizontalGutter: 10, autoReinitialise:true } ); </code></pre> <p>Of course you'll have to put it in your file where you're initializing jScrollPane if you want it to work correctly every time you refresh the page.</p> <p>And why do you have 2 <code>$(document).ready(function()...)</code> and 2 <code>$(function()...</code> (which is the same) definitions in your file? You should put all the code in one function, which will be called when the DOM is loaded. And for the sake of your users UX, try to reduce the images and files, also try to avoid using millions of different js plugins. It took me almost 11s (according to network profiler) to load for the first time and I have 100Mb/s uplink, I can't imagine someone with mobile internet. The webpage makes over 100 requests, a lot of them are 1x1px pngs. If all that is really necessary, you might want to look into compressing and bundling. It depends on what back-end framework you'll be using. I can say that ASP.NET MVC 4 provides very simple bundle manager but I'm sure that PHP or rails provide something similar.</p>
    singulars
    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.
    1. This table or related slice is empty.
    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