miocene Posted November 12, 2009 Share Posted November 12, 2009 Please see my site at cforcfoundation.org.In the footer, at the bottom-right, there is a link for the rss feed. Is there a way to get the text vertically aligned centrally with the rss icon?I have tried vertical-align: middle and various paddings etc but I can't get it to align.The image is an inline image rather than a css-called background image.any help appreciated Link to comment Share on other sites More sharing options...
miocene Posted November 12, 2009 Author Share Posted November 12, 2009 Sorry, moments after posting I think I figured it....I just put the pic and text in a tableStill... any suggestions on a better way Link to comment Share on other sites More sharing options...
Ingolme Posted November 12, 2009 Share Posted November 12, 2009 The better way is to apply vertical-align: middle to the image, not the text. Link to comment Share on other sites More sharing options...
miocene Posted November 12, 2009 Author Share Posted November 12, 2009 The better way is to apply vertical-align: middle to the image, not the text.I applied it to the whole <p> (which contained the image) but it didn't work... Link to comment Share on other sites More sharing options...
Ingolme Posted November 13, 2009 Share Posted November 13, 2009 I applied it to the whole <p> (which contained the image) but it didn't work...You have to apply it directly to the <img> element. That's the element that you're trying to align respect to the text.img { vertical-align: middle; } Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.