I have two elements that I would like to put on the bottom right of the page.I went through a couple of threads but some parts help and others tend to kill the layout.
Note: The background color is for illustration purposes. I would like the text aligned to the right.
Here is where I am at: ( http://jsfiddle.net/dsri/WswG9/ )
HTML:
<div id="container">
<div id="a"> <span id="aa">Text1</span></div>
<div id="b"> <span id="bb">Text2</span></div>
</div>
CSS:
div#container{
text-align: center;
}
span#aa{
font-size: 75px;
color: rgba(0, 0, 0, 0.5);
background-color: Yellow;
overflow: hidden;
}
span#bb{
font-size: 45px;
color: rgba(0,0,0,0.5);
background-color: red;
}
This is what I would ideally like: http://i.imgur.com/ANuAvly.png
Try changing the CSS for your #container
div to:
div#container {
text-align: right;
position:absolute;
right:0;
bottom:0;
}
Try this
div#container {
text-align: right;
position:fixed;
right:0;
bottom:0;
}
Something like this: http://jsfiddle.net/dsri/WswG9/ ?
div#container{
}
div#a,div#b{
text-align:right;
margin: 0 100px;
}
Try This CSS
div#container{
text-align: right;
position:absolute;
right:0;
bottom:0;
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.