
10-07-2010, 03:15 PM
|
|
Administrator
|
|
Join Date: Aug 2010
Posts: 85
Thanks: 7
Thanked 21 Times in 20 Posts
|
|
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
|