Aligning image vertically to text
-
I want to align the bottom of an image with the bottom of the text it’s associated with. Do I add code to my style.css Stylesheet that’s similar to this for aligning an image to the right of text?
img.alignright {
padding: 4px;
margin: 0 0 2px 7px;
display: inline;
}Or do I do it this way?
<html>
<head>
<style type=”text/css”>
img.bottom {vertical-align:text-bottom;}
</style>
</head>Or some other way?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Aligning image vertically to text’ is closed to new replies.