cotonti.com : align image to text https://www.cotonti.com Son konu mesajları Cotonti en Sun, 30 Nov 2025 00:48:14 -0000 Elgan # aiwass : 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 !

nice lil tip]]>
Pzt, 04 Mayıs 2009 02:57:37 -0000
aiwass
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 !]]>
Paz, 03 Mayıs 2009 17:44:08 -0000
Kort Paz, 22 Mar 2009 15:51:28 -0000 DemptD
I really suck at coding :-P]]>
Paz, 22 Mar 2009 11:48:38 -0000
Xerora <p id="maintextside"><img style="vertical-align: middle;" src=https://www.cotonti.com/"skins/arcticv3/img/system/groups-member.gif"> Brukerpanel:</p>
Like that ?]]>
Paz, 22 Mar 2009 11:41:50 -0000
DemptD

(Done in photoshop)

Instead of like it looks right now:



Here is the code for that part:

index.TPL:
<p id="maintextside"><img src=https://www.cotonti.com/"skins/arcticv3/img/system/groups-member.gif"> Brukerpanel:</p>

CSS:

maintextside {background:#454545; font-weight:bold; font-family:verdana; color: #ffffff;}
]]>
Paz, 22 Mar 2009 10:41:58 -0000