css - Rotated Absolutely-Positioned element with Negative Text-Indent Makes Page Very Long -
i have header background image. styled header follows:
h1 { position:absolute; background:url(../somepicture.jpg) no-repeat 0 0 scroll #000; height:100px; text-indent:-9999em; -moz-transform:rotate(-10deg); -webkit-transform:rotate(-10deg); transform:rotate(-10deg); width:200px } the page becomes long. know because of text-indent transform because tried removing 1 of properties , page became shorter.
how come when element isn't rotated width doesn't expand? css bug? happens in chrome, firefox, internet explorer. haven't checked safari or opera.
thanks.
use overflow:hidden give parent position:relative not affect whole page
Comments
Post a Comment