Hanger Bay

Level Up your Web Tools & Technologies Knowledge

  • Home
  • Articles
  • More Resources
Fixing a Floated Element in jQuery

Fixing a Floated Element in jQuery

by Designfire

I just watched this screencast from jqueryforedesigners.com and it had so many little nuggets that I wanted to share it with you. For instance, I did not realize that if you were trying to get the margin (or padding or anything that is a number) of an element, and it returns a string like “20px”, you can strip the “px” by using .parseFloat(). Wow where has this been all my life. Hope you find this helpful as well.




April 24, 2010 | Comments No Comments | Tagged under: jQuery, technique, tutorial
  • Tag Cloud

    featured jQuery technique tutorial
  • Contributors

  • About Hanger Bay


    Hanger Bay was created to help intermediate web coders grow their skillset and become a more effective developer (if you can write HTML, some CSS, and little or no javascript, this is you).

    We provide web articles on new web technologies and provide links to the tools that can make your coding and debugging, more streamlined.

    Follow HB:
  • Subscribe to our feed
  • Receive email updates
    Share HB:
  • Add to your Delicious bookmarks
  • Retweet our URL
  • Email to a friend
    Navigate HB:
  • Home
  • Articles
  • More Resources