css line-height : number to px

Viewed 29291

am doing an automation tool which has to pick html css properties (font-color, size, etc..), and am done most of the part.Here the problem is, some case am getting the css property(line-height), line-height : 1.54 . Here for some purpose, i need to convert the number(1.54) to px value(like, line-height : 15px). So, Is it possible to do this calculation ?

1 Answers
Related