[英]How to align a paragraph text to an image in the middle
I basiclly wanna make the same as the image shown,where the text Love us on facebook align in the middle of the image: 我基本上想与显示的图像相同,其中在Facebook上的“爱我们”文本在图像中间对齐:
Here my html: 这是我的html:
<p><img class="alignnone size-full wp-image-184" src="/wp-content/uploads/2016/08/facebook.png" alt="facebook" width="60" height="60">Love us on Facebook</p>
I thought of using vertical alignment to middle but it is not working. 我考虑过使用垂直对齐方式到中间,但它不起作用。
At the moment, mine looks like this: 此刻,我的样子是这样的:
您需要在图片中添加vertical-align:middle
:
.wp-image-184 { vertical-align:middle; }
<p><img class="alignnone size-full wp-image-184" src="/wp-content/uploads/2016/08/facebook.png" alt="facebook" width="60" height="60">Love us on Facebook</p>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.