Форуми / Cotonti / Skins / align image to text

aiwass
#12006 03.05.2009 17:44
The smart way would be to instead of having <img style="blablabla"> use it as a sub-class to your
maintextside {background:#454545; font-weight:bold; font-family:verdana; color: #ffffff;}

like this
.maintextside {background:#454545; font-weight:bold; font-family:verdana; color: #ffffff;}
.maintextside img {vertical-align:middle;}

or the even more fancy way/harder way of doing it :
.maintextside {background:#454545; font-weight:bold; font-family:verdana; color: #ffffff;}
.maintextside img {padding-left:5px;background:url("img/image.gif") 0 50% no-repeat;color:#000;}

It's all up to how you want it all to be presented, really !
Take all that money that we spend on weapons and defences each year and instead spend it feeding and clothing and educating the poor of the world, which it would many times over, not one human being excluded, and we could explore space, together, both inner and outer, forever, in peace. - Bill Hicks

https://evlear.com

Відредаговано: aiwass (03.05.2009 21:57, 16 років тому)