diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-01-06 07:32:54 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-01-06 07:32:54 +0000 |
commit | 303720fb6294d9bc3884c4809ae5664d00a5977f (patch) | |
tree | 78ba2e93efda744bdc4f2765fbcd4291e672e21c | |
parent | 6c20d333d2737f2875292e69f6e4bdfcfd57a684 (diff) | |
download | brdo-303720fb6294d9bc3884c4809ae5664d00a5977f.tar.gz brdo-303720fb6294d9bc3884c4809ae5664d00a5977f.tar.bz2 |
- Patch #15609 by m3avrck: get rid of forced <br />-tag after <label>-tags. Makes it easier to theme forms.
-rw-r--r-- | includes/theme.inc | 4 | ||||
-rw-r--r-- | misc/drupal.css | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/includes/theme.inc b/includes/theme.inc index f12c04665..e025299e6 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -595,10 +595,10 @@ function theme_form_element($title, $value, $description = NULL, $id = NULL, $re if ($title) { if ($id) { - $output .= ' <label for="'. form_clean_id($id) .'">'. $title .':</label>'. $required ."<br />\n"; + $output .= ' <label for="'. form_clean_id($id) .'">'. $title .":$required</label>\n"; } else { - $output .= ' <label>'. $title .':</label>'. $required ."<br />\n"; + $output .= ' <label>'. $title .":$required</label>\n"; } } diff --git a/misc/drupal.css b/misc/drupal.css index 59bc3e199..840b37c8d 100644 --- a/misc/drupal.css +++ b/misc/drupal.css @@ -148,6 +148,7 @@ tr.odd .form-item, tr.even .form-item { font-size: 0.85em; } .form-item label { + display: block; font-weight: bold; } .form-item label.option { |