pascal_22 Posted July 20, 2012 Share Posted July 20, 2012 Hello, I will try to explain what i want, On my website, i want to create an instant messaging. so when a user visit a member profil and this member he's online, the user can click on IM button and a div appear in a bottom right to enter a messager to send to this user. When a user click on Instant messaging button, i want first a full width screen div with 75px height(it will be the main div that shows active IM), then, i want to show all current active IM. Then, if user click on an active IM div, this div grow maybay 400px height and 180px width, to let user type his message BUT i wnat that the main div stay at 75px height..... Do you have a hint for me... I use php / ajax to show div but i don't know how make a div bigger than its parent in height..... Thanks a lot! Pascal Quote Link to comment https://forums.phpfreaks.com/topic/266001-instant-messagingdiv-taller-than-its-parent-div/ Share on other sites More sharing options...
avibitton Posted July 20, 2012 Share Posted July 20, 2012 try using jquery , when elemnt is clicked you can change dynamically its css . and have you specified the width and the hieght in the css ? do you have it to see online ? Avi . Quote Link to comment https://forums.phpfreaks.com/topic/266001-instant-messagingdiv-taller-than-its-parent-div/#findComment-1363137 Share on other sites More sharing options...
pascal_22 Posted July 20, 2012 Author Share Posted July 20, 2012 my project is not online now... ya i specify a width and height in css... Also... i suppose that instant messaging are heavy for a server? i mean, every x second, i request is send do DB to see if a user didn't IM him? is it heavy? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/266001-instant-messagingdiv-taller-than-its-parent-div/#findComment-1363140 Share on other sites More sharing options...
avibitton Posted July 20, 2012 Share Posted July 20, 2012 so use jquery and the div with im messaging can be hidden or display none (prefered) till its on use . and if you need you can change the other div the display none if you dont need him . im sure with jquery you will get got resoults for your needs. Quote Link to comment https://forums.phpfreaks.com/topic/266001-instant-messagingdiv-taller-than-its-parent-div/#findComment-1363142 Share on other sites More sharing options...
pascal_22 Posted September 19, 2012 Author Share Posted September 19, 2012 sorry for the time of respond... ok i 'll try it and i ll let you know!!! thanks Pascal Quote Link to comment https://forums.phpfreaks.com/topic/266001-instant-messagingdiv-taller-than-its-parent-div/#findComment-1379231 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.