css - 如何向上移动 CSS 页脚中的文本?

标签 css

我在页脚中有一个小文本。文本右对齐,但我希望文本稍微向上移动?我怎样才能做到这一点?我的代码

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

最佳答案

#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; 
}

关于css - 如何向上移动 CSS 页脚中的文本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22214557/

相关文章:

javascript - 在 .hbs ember 模板文件的占位符中添加图像

html - % height 没有像我预期的那样工作

html - css - 如何使表格的一列适合下一个最高的单元格?

javascript - 寻找 jQuery html 元素进行练习

html - 无法在 ASP.NET 中选中服务器控件复选框?

css - 将服务器端 CSS 应用于客户端

javascript - 失去控制,我怎么能达到这种效果?

html - 无法加载 Gridset Firefox 样式表

html - Flex wrap layout with boxes that "float left"- 使最后一行框与其余框宽度相同

html - 在 body 标签中加载外部 css 文件