Put extend full height code into css functions