Pixels occupied by a highlighted character in css

uppi

New Member
I have a box 940px in width and a height of 40px\[code\]<!doctype html><head><meta charset='utf-8' /><title>Html Positioning</title><style type='text/css'>.top{width:940px;border:1px solid pink;display:block;min-height:40px;}.orange{font-size:16px;background-color:orange;}</style></head><body><p class="top"><span class="orange">v</span></p></body></html>\[/code\]I have the character \[code\]v\[/code\] with a \[code\]font-size 16 px\[/code\] highlighted and i was wondering how much width and height the character highlighting takes. I have the fiddle http://jsfiddle.net/thiswolf/hzm65/Does css offer a way of knowing the width and height of such highlighting?.
 
Back
Top