2015-06-22 140 views
0

我只是想要一点帮助。我想将我的div元素从显示器的最右下方移到大约25%的顶部。下面的CSS代码是否正确?将元素放置到特定位置

.positioning { 
    vertical-align: bottom; 
    text-align: right; 
} 

HTML代码

<div class="positioning"> 
    //Content 
</div> 

回答

0

.positioning { 
 
    position: absolute; 
 
    right: 0; 
 
    bottom: 25%; 
 
}
<div class="positioning"> 
 
    25% top from Right bottom 
 
</div>

+0

由于马诺,这是有帮助的。 –

+0

欢迎Akash! :) –