Black Webmasters Forum

 


Reply
  #1  
Old 10-07-2010, 03:15 PM
Administrator
 
Join Date: Aug 2010
Posts: 85
Thanks: 7
Thanked 21 Times in 20 Posts
Post Align images with text in CSS

Sometimes when adding images to the same line as text it may be too high. The default position for images is "baseline", which will have the text sitting a little higher than the text.

To align the image in the middle of the text use this CSS code:

Code:
img {
   vertical-align: middle;
}
Other variations to try:
text-bottom
text-top
super
sub
__________________
Follow Me On Twitter
Reply With Quote
Reply

Tags
align text

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Our Sponsor Links

Help Us Grow


Follow Black Webmasters on Twitter
Black Webmasters on Twitter



Link to us:
Black Webmasters Forum
Please link to: http://www.blackwebmasters.com



Premium Wordpress Themes
Premium Wordpress Themes



Content Relevant URLs by vBSEO 3.6.0