javascript - Calculate half of the height of the last list item in an ol with jquery -


the question kinda simple can't seem figure thing out.

how can calculate half of height of last list item in ol jquery? need shorten line exact amount of pixels make thing work:

my problem

try

var height_li = $('ol li:last').height()/2; 

references

http://api.jquery.com/height/

http://api.jquery.com/last-selector/


Comments

Popular posts from this blog

mongodb - Struggling to get ordered results from the last retrieved article, given array of elements to search in -

c# - Pausing a storyboard on TabItem mouse over -

c# - Attribute value in root node of xml Linq to XML -