![]() |
jQuery: positioning a div with float
School assignment:
Quote:
Code:
$(document).ready(function() {Code:
css("float", "right")You can download my source files HERE. |
You want to float it left. Also, you want to subtract at least 70 pixels from your current width calculator, else the container won't be able to hold all items in it as well as use before instead of append with a target of .dummy instead of #container. All in all, your jQuery code should look like:
Code:
$(document).ready(function() {And yes, tested and works. Enjoy. |
| All times are GMT +1. The time now is 12:03 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.