This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*CLASS OUTER DIV*/ | |
.outer { | |
display: table; | |
} | |
/*CLASS INNER DIV*/ | |
.inner { | |
display: table-cell; | |
vertical-align: middle; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function(){ | |
$(window).resize(function() { // resize window event | |
var screen_height = $(window).height(); // get window height | |
$('.test').css({'height': screen_height}); // set height of div class="test" | |
}); | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
h1, h2, h3, h4, h5, h6 { | |
display: inline; | |
} | |
</style> |