Currently working on creating an uncomplicated chatbox with a header using CSS. My aim is to position the chat at the bottom and right of the page. I've experimented with the following:
float: right;
bottom: 0;
position: absolute;
Although this aligns it to the bottom, it doesn't place it correctly to the right. Below is my complete code:
CSS
#chatbox {
height: 360px;
width: 320px;
border-left: 1px solid #000;
border-right: 1px solid #000;
border-bottom: 1px solid #000;
float: right;
bottom: 0;
position: absolute;
}
.chatheader {
font-family:'PT Sans';
background: #999;
width: 322px;
height: 36px;
color: #fff;
text-align: center;
padding-top: 15px;
}
HTML
<div class="chatheader">chatboxheader</div>
<div id="chatbox">
</div>
If you'd like to see the code in action here's a demo link DEMO I'm keeping it simple for now to focus on alignment before enhancing the design. Appreciate any assistance provided! Thank you!