如何在另一个div到右下角设置div的位置?

pri*_*ime 4 html css

在这个例子中:

HTML

<div style="width:50%;overflow:hidden">  
        <div id="inboxHeader">
                    <div id="inboxCount"><p>Earth</p></div>

        </div>
    </div>
Run Code Online (Sandbox Code Playgroud)

CSS

#inboxHeader{
        background-color:yellow;    
        height :300px;
        position: relative;
    }

    #inboxCount{
        position: absolute; 
        bottom: 0;
        float:right; 
    }
Run Code Online (Sandbox Code Playgroud)

Earthbottom left角落里.那我怎么能把它转移到bottom right角落?

Fre*_*ang 5

设置right:0的,而不是float:right

http://jsfiddle.net/8np2f/4/