--- /Users/Sergio965/Desktop/user_badges/user_badges.module
+++ user_badges.module
@@ -286,9 +286,11 @@
           '#type' => 'user_profile_category',
           '#title' => t('Badges'),
           '#weight' => 10,
+					'#attributes' => array('class' => 'user-badges'),
         );
         $account->content['user_badges']['badges'] = array(
           '#type' => 'user_profile_item',
+					'#attributes' => array('class' => 'badges'),
           '#value' => theme('user_badge_group', $badgeimgs),
         );
       }
@@ -784,9 +786,11 @@
       if ( $limit != 0 || $badge->unhideable == 1 ) {
         if ($uid == 'select') {
           $badges[$badge->bid] = $badge->name;
+					$badges[$badge->bid]['#attributes'] = array('class' => t('badge ') . str_replace(' ','-',strtolower($badge->name)));
         }
         else {
           $badges[$badge->bid] = $badge;
+					$badges[$badge->bid]->class = 'badge ' . str_replace(' ','-',strtolower($badge->name));
         }
         //Count down our limit, unless the badge doesn't count towards it
         if (!$badge->doesnotcounttolimit) {
@@ -988,10 +992,10 @@
   
   //If we have a full image URL, don't require theme_image to get the size (it only breaks)
   if (valid_url($badge->image, TRUE)) {
-    $image = theme('image', $badge->image, $badge->name, $badge->name, NULL, FALSE);
+    $image = theme('image', $badge->image, $badge->name, $badge->name, array('class' => $badge->class), FALSE);
   }
   else {
-    $image = theme('image', $badge->image, $badge->name, $badge->name);
+    $image = theme('image', $badge->image, $badge->name, $badge->name, array('class' => $badge->class));
   }
   
   //We don't link the badge if there is no link and no default, or if the default is overridden
