I was in the middle of a project where I needed to implement modal windows.
After playing around with colorbox, I suddenly realised that the CSS framework () which I was using at that time, had options to display modal windows. Bootstrap
So after a quick lookup on the documentation, and then trying out a few demonstrations, I decided it was time to replace colorbox with the Bootstrap modal windows.
After hours of tweaking here and there, I ended up almost completely exhausted from trying to figure out why the modal window size just wouldn’t change and remain in the center. The SPAN tags sizes were suddenly behaving as though they weren’t based on the framework.
After trying all the things I thought were logical solution and failing over and over, I decided to finally consult the G-oracle.
You can find the complete load down on GitHub with sample code included./issues/675
- Bootstrap CDN – Twitter’s Bootstrap Hosted On NetDNA’s Tier-1 Content Delivery Network (functionn.blogspot.com)
- document.ready & window.load (daniweb.com)