Question: I have a JS app that saves to localStorage. No big deal. However, what's being stored are fairly large JSONs. 10MB vanishes quickly. What I'd like to do is, if storage is full, delete the oldest record.

Is there a way to reliably find the oldest record in localStorage?

Answer: 
In order to make your LayerSlider display at 100% height and width, leave the "Slider height" attribute in "Slider Settings" blank, and then use a script like the following to set the height:

```
<script type="text/javascript"> 
    function resize()
    {
        var heights = window.innerHeight;
        document.getElementById("layerslider_1").style.height = heights + "px";
    }
    resize();
    window.onresize = function() {
        resize();
    };
</script>

```

Insert the script into your footer.php file before the closing body tag. If your slider ID isn't number 1, then change "layerslider\_1" to the correct ID.
you can add style to the div element

```
<div style="background: url(images/xyz.jpg) no-repeat center center fixed;">...</div> 

```

I just took the css from your sample page and copy/pasted!