shyam13 Posted August 6, 2012 Share Posted August 6, 2012 How do you create a floating div? Thank you Quote Link to comment https://forums.phpfreaks.com/topic/266727-floating-div/ Share on other sites More sharing options...
pseud Posted August 6, 2012 Share Posted August 6, 2012 In the CSS, put .myDiv { float: left; } Change left with whatever side you want it to float (right or left) then call it in the html like so <div class="myDiv"></div> There you have a floating div. Quote Link to comment https://forums.phpfreaks.com/topic/266727-floating-div/#findComment-1367109 Share on other sites More sharing options...
shyam13 Posted August 7, 2012 Author Share Posted August 7, 2012 If I wanted to make the form fade out when a button is pressed from another form, would I use the same method? Quote Link to comment https://forums.phpfreaks.com/topic/266727-floating-div/#findComment-1367546 Share on other sites More sharing options...
Mahngiel Posted August 7, 2012 Share Posted August 7, 2012 what does fading have to do with floating? Quote Link to comment https://forums.phpfreaks.com/topic/266727-floating-div/#findComment-1367547 Share on other sites More sharing options...
shyam13 Posted August 7, 2012 Author Share Posted August 7, 2012 I done the float for the div, but if I wanted it to fade out when someone access the form, Would I use jquery and javascript? Quote Link to comment https://forums.phpfreaks.com/topic/266727-floating-div/#findComment-1367552 Share on other sites More sharing options...
Mahngiel Posted August 7, 2012 Share Posted August 7, 2012 Would I use jquery and javascript? Yes, these sorts of actions require it. jquery is easy for apt individuals to pick up as opposed to vanilla JS. http://jsfiddle.net/Mahngiel/2CfzS/ Quote Link to comment https://forums.phpfreaks.com/topic/266727-floating-div/#findComment-1367573 Share on other sites More sharing options...
shyam13 Posted August 7, 2012 Author Share Posted August 7, 2012 Thank you Quote Link to comment https://forums.phpfreaks.com/topic/266727-floating-div/#findComment-1367580 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.