I am working on creating a chat feature similar to Facebook chat for personal use. Everything is functioning correctly, except for some issues with the CSS.
I attempted using position absolute to arrange the div, which worked fine, but encountered problems when looping the chat box in PHP. I needed to use float to align the div boxes to the right.
You can view my jsfiddle here
Below are snippets of code in jQuery:
//Close
$('.closed1').click(function () {
$('.wrap_box1').hide();
$('.main_chat1').addClass('hide_wrap_box');
});
//Open
$('.open_chat1').click(function () {
$('.wrap_box1').show();
$('.main_chat1').removeClass('hide_wrap_box');
});
In my jsfiddle demo, you'll notice that the chat box collapses to the top. How can I make it collapse to the bottom? Try clicking the close button.