Tuesday, 08 May 2018 03:44

Modal Slide Up From Bottom

Here's a light weight code snippet that creates a modal popup that slides amd anchors from the browsers bottom edge.

https://codepen.io/shandb/pen/GdyKPm

Published in Blog
Wednesday, 20 September 2017 23:35

Table height 100%

Giving a table (or any other container) the 100% height of its containg parent totally sucks. yes, it can be done with CSS, but sometimes you need to do it with javascript.

.instance is the class name of the parent container

.tab is the class name of the table (or other containing element).


<script type="text/javascript">
// table cell height 100%
$(document).ready(function(){
var b= $(".instance").height(); //gets the window's height, change the selector if you are looking for height relative to some other element
$(".tab").css("height",b);
});
</script>

Published in Blog