Created
June 20, 2011 19:12
-
-
Save namlet/1036333 to your computer and use it in GitHub Desktop.
Align labels right-justified by making them all the same width as the largest one.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var max = 0; | |
jQuery("label").each(function(){ | |
if ($(this).width() > max) max = $(this).width(); | |
}); | |
jQuery("label").width(max); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment