垂直文字旁边的居中图标 [英] Center icon vertically next to text
本文介绍了垂直文字旁边的居中图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经尝试了很多东西,我在SO上找到了这些东西,但没有什么帮助。
我在CSS方面经验不足。
我想这样显示:
< a href =https://i.stack.imgur.com/uBFnM.png =nofollow noreferrer>
.inline-block {display:inline-block;}。lock_image {width:30px; height:30px;} hr {width:250px; margin:0px;底部:1px; margin-bottom:5px!important; margin-top:5px!important;}。title {margin:0px;}
< div class =inline-block>< img src =https://image.ibb.co/f7sA2Q/icons8_Lock_50.pngalt =icons8_Lock_50border =0class =lock_image>< / div>< div class =inline-block> < p class =title> Google云端硬盘集成电子邮件< / p> < HR> < a class =mgl20href =javascript:void(0);> xyz@gmail.com< / a>< / div>