定位文本稍微向右

问题描述 投票:0回答:2

我试图文本更向右一点点的地方。试过很多的位置代码已经,但是CSS不读取代码,我想。

.portal .icons a {
    position: relative;
    margin-bottom: 15px;
    top: 0px;
    transition: all 0.5s ease;
    text-decoration: none;
    color: rgba(215, 213, 216, 0.4);
    font-family: ZCOOL QingKe HuangYou;
    font-size: 40px;
    text-shadow: 2px 2px 2px rgba(215, 213, 216, 0.4);
}
html css
2个回答
1
投票

尝试这个 :

.portal .icons a {
position: relative;
margin-bottom: 15px;
top: 0px;
//add this
left : 100% ; 
transition: all 0.5s ease;
text-decoration: none;
color: rgba(215, 213, 216, 0.4);
font-family: ZCOOL QingKe HuangYou;
font-size: 40px;
text-shadow: 2px 2px 2px rgba(215, 213, 216, 0.4);

}


0
投票

因为你添加postition:relative你应该添加left: value_of_how_much_you_wnt_to_push_it_to_the_right

© www.soinside.com 2019 - 2024. All rights reserved.