I am little bit tired for now (out of coffee), so I am unable to figure this out.
When I set p.style.width = auto (the blue one), why is its width at 100%? None of the elements have their width set to 100%, so I doubt it's inherited property.
How can I set the <p>
's width to match its content width plus padding?
Sample page: http://elijen.ic.cz/hs