I have been struggling to try and place an image in the middle of a line of text.
"this is text THIS IS THE IMAGE this is text"
Any idea?
The old non-standard valign='ABSMIDDLE'
is massively deprecated.... Although it still works in every browser I know.
This should be a valid CSS workaround:
<img src="..." style="vertical-align:middle">
Try using CSS:
img {
vertical-align: middle;
}
I guess what you want is this?
<div>
this is text <img src="..." style="display:inline"> this is text
</div>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.