The function theme_user_profile creates DIVs with class 'profile', and then uses a clear:both; rule in modules/user/user.css to clear any floats (eg profile pictures).
A better approach is to add the CSS clear-block class which is defined in Drupal core. In other words, change:
$output = "
\n";
to
$output = "
to
$output = "
\n";
This has the advantage of extending the DIV's bounding box to include all floats. In other words, the border can be styled. Currently, it will cut through floated profile images.
The clear: both; rule for .profile can also be dropped from modules/user/user.css.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | enclose_pictures.patch | 427 bytes | binford2k |
Comments
Comment #1
binford2k commentedyour post was mangled. nevertheless, here's a patch.
Comment #2
dave reidMarking as a duplicate of #67523: Looking at the user list the user picture stick out of the border.