<style>
p span,img{
vertical-align: middle;
}
</style>
<p>
<span>fsafsafsafsa</span>
<img src="../images/1.png" alt="">
<span>fsafsafsafsa</span>
</p>

Add to imgalign="absbottom" or align="absmiddle" The bottom edge of the AbsBottom image is aligned with the bottom edge of the largest element in the same row. AbsMiddle The middle...
Characteristic with respect to align <img> element, the more a page designer to align the float property images. Alignment may be achieved in two ways. In order to ensure that the text is not in...
CSS text spacing and text alignment CSS has a letter-spacing property, but sometimes it is still difficult to align. And in a small program, & nbsp; invalid Here, you need to align your name and m...
CSS Triangle 1. We can simulate the triangle effect with css border 2. The width and height are 0 3. We have to write all 4 borders, only keep the required border color, and the rest cannot be omitted...
1. The best common solution for the vertical alignment of the icon text of the mobile terminal (Android device, ios device) is to use the flexible box layout, which can quickly and effectively achieve...
label text alignment The form is divided into three alignment 1, Left (default alignment, generally do not need) This is the default alignment 2, alignment to the right: the following main style code ...
Introduction # There are three values for the text-align attribute in CSS, as follows: left, center, right. Directly enter the text-align attribute practice, if you are a novice, you must practice i...
Add to the style of the picturevertical-align:middle...