2014-03-06 25 views
0

我在頁腳中有一個小文本。文本對齊到正確的位置,但我希望文本略微向上移動?我怎樣才能做到這一點?我的代碼如何向上移動CSS頁腳中的文字?

#foot tag { 
    width:1000px; 
    height:30px; 
    padding:10px; 
    border:5px solid white; 
    margin:0px; 
    text-align:right; 
    padding-top: 10px;  
} 
+0

添加填充-鈕:20px的 – SajithNair

+0

除非有更多的問題,好像這可能已經做了回答一個簡單的搜索解決。 – Christopher

+0

@Christopher我已經搜索了足夠的,並試圖解決這個問題,因爲半小時後。仍然不完全正確。但感謝您的建議! – user3385608

回答

0
#foot tag { 
    width:1000px; 
    height:30px; 
    padding:10px 10px 20px 10px; 
    /* You can adjust the above 4 values to add padding to top, right, bottom and left */ 
    border:5px solid white; 
    margin:0px; 
    text-align:right; 
} 
0

你可以做幾件事情,這是艱難的,沒有看到直播現場說。

1)通過改變降低的頂部填充:

padding: 5px 10px 10px 10px; 

2)使用負上邊距:

margin: -5px 0 0 0; 
0

你可以試試這個。頂部和左側的CSS屬性會打動你p在父DIV

<div style="position: relative"><p style="position: absolute; top: 1px"></p></div>