How to reverse font percentages

craigsepia

New Member
How do I reverse a font-size percentage increase. If The font size has increased by 125%, then I would have thought that reversing it would require a font size of 80% (100/125 = 0.8)However in this example, where I am using the resultant fonts em size to create a width, it doesn't work. why?fiddle.html :\[code\]<div id="base"> <div id="row1"> <input type="text" /> </div> <div id="row2"> <input type="text" /> </div> </div>\[/code\]css :\[code\]#row2 { font-size: 125%;}#row2 input { font-size: 80%;}input { background-color: #343434; width: 10em;}\[/code\]
 
Back
Top