Vertical align text with image in CSS Posted March 23 · Edited March 23 by cebsen needed to add text I'm having a challenge using CSS property vertical-align, I want to use the latest CSS to get this done, not put the code within the HTML or putting the style under the head of the page. The CSS code as follows p.parrot img { vertical-align: text-top; } HTML <p.parrot img?<img src-"Images/redparrot.gif wisth="195" height="156"> I've uploaded the file so go to animalandhumannutrition101.com/ourstory.html to view it with the problem
Vertical align text with image
in CSS
Posted · Edited by cebsen
needed to add text
I'm having a challenge using CSS property vertical-align, I want to use the latest CSS to get this done, not put the code within the HTML or putting the style under the head of the page. The CSS code as follows
p.parrot img {
vertical-align: text-top;
}
HTML
<p.parrot img?<img src-"Images/redparrot.gif wisth="195" height="156">
I've uploaded the file so go to animalandhumannutrition101.com/ourstory.html to view it with the problem