html css图标怎么跟文字并排,html - FA图标和文字环绕的HTML / CSS问题 - SO中文参考 - www.soinside.com...
我試圖找到在Font Awesome Icon旁邊寫文本的正確方法。我希望文本在圖標旁邊排成一行,當文本被加長(或顯示寬度縮短)時,我想在多行文本中而不是圖標下面的圖標旁邊。
Title
Header
This icon is a picture of a house. I want the text to wrap square so is does not load below the icon. When the display is changed, for mobile users, it jumps below the icon.
width:100%;
}
.fas.fa-home{
font-size:36px;
align-self:start;
float:left;
}
#box.img{
font-size:10em;
color:rgb(32, 61, 133);
padding-left:10px;
float:left;
margin-top:16px;
margin-left:20px;
margin-right:20px;
margin-bottom:16px;
clear:left;
display:inline-block;
}
#title{
color:rgb(32, 61, 133);
margin-top:21.44px;
margin-left:20px;
margin-right:20px;
margin-bottom:21.44px;
}
#header{
color:rgb(32, 61, 133);
margin-top:21.28px;
margin-left:20px;
margin-right:20px;
margin-bottom:21.28px;
}
#content{
color:rgb(85, 85, 85);
margin-top:16px;
margin-left:20px;
margin-right:20px;
margin-bottom:16px;
float:left;
align-self:start;
display:inline-block;
clear:inherit;
}
我希望圖標對齊到頁面的左側,文本旁邊的文本,就像它們是單獨的內容列一樣。
總結
以上是生活随笔為你收集整理的html css图标怎么跟文字并排,html - FA图标和文字环绕的HTML / CSS问题 - SO中文参考 - www.soinside.com...的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 电脑背身上是潮流?Zotac发布支持VR
- 下一篇: 查找与引用函数查找与引用函数怎么用视频