Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Image and Text Alignment
Hi,
On my blog delisimo! http://www.delisimo.co.uk/ I have a category and comment slink and the bottom of each post. Alongside these links I have added icon graphics.
At the moment the icons appear to sit higher than the text. Is this just because of the size of the images or is there a way I can vertically align the text in the middle say.
Many thanks
Last edited by djahughes (2006-04-17 15:28:05)
David Hughes
davidhughes.org
Offline
Re: Image and Text Alignment
try this:
.meta img{vertical-align:middle;}
~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~
Offline
Re: Image and Text Alignment
Hi,
Thanks – that has helped a little.
Seems to work best in IE but not 100% in Firefox/Safari.
Many thanks
David Hughes
davidhughes.org
Offline
#4 2006-04-18 10:09:15
- whatbrick
- Member
- From: Texas
- Registered: 2006-03-13
- Posts: 100
Re: Image and Text Alignment
There are <a href=“http://www.w3.org/TR/REC-CSS2/visudet.html#propdef-vertical-align”>other values</a> for the vertical-align
property you can try. You can even use a negative px or negative em values for a more accurate rendering.
Do not taunt the Markup Monkey!
Offline
Re: Image and Text Alignment
Thanks
I’ll try those when I get home tonight.
Thanks
David Hughes
davidhughes.org
Offline
Pages: 1