0

I am using position: fixed and bottom: 0 to affix something to the bottom of the screen. The name, however, appears to go off of the screen, on my 11" Air, and you can see the site here. I've posted my CSS code below for the div.
Broken JSFiddle: http://jsfiddle.net/MgdQv/

#credits {

    color: #363636;
bottom: 0;
padding-right: 10em;
text-align: right;
position: fixed;
width: 100%;
    opacity: 0;
    -o-transition:1.5s;
  -ms-transition:1.5s;
  -moz-transition:1.5s;
  -webkit-transition:1.5s;
  transition:1.5s;

}
#credits:hover {
    opacity: 0.8;

}
4

2 回答 2

1

添加right: 30px(30px 是margin-right父正文的值),它应该按预期运行。
编辑:也许删除padding-right: 10em. 忘记在回答之前我已经在 Firebug 中停用了它......

也不要发布到网站的链接:在你解决了你的问题之后,你的问题对于这个问题的未来访问者来说将变得毫无意义,因为链接将会改变......请发布相关的 HTML 和 CSS 来重现你的问题(和小提琴)

于 2013-05-23T20:26:44.723 回答
0

您只需将身高属性添加到您的#credits。

于 2013-05-23T20:26:14.943 回答