The new administration page (?q=admin) breaks in many standards-compliant themes because there is no clear after the floating (left and right block) divs.

This patch adds a simple div class="clear-both" immediately after the floating divs.

Seems to fix the problem.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Steven’s picture

Status: Needs review » Needs work

'clear-block' is not the same as "clear: both". You should set the class on the container itself for proper usage.

m3avrck’s picture

Title: Clearing Floats on New Administration Page » Cleanup admin markup + CSS
Status: Needs work » Needs review
FileSize
4.23 KB

This patch cleans up the markup on administratin pages, along with corresponding CSS. It also moves theme specific CSS into their respective themes. Also should fix the clearing issue on other themes as well.

The result: less CSS, improved markup, and more appealing admin pages depending on the theme.

kkaefer’s picture

Status: Needs review » Reviewed & tested by the community

+1 on this. Tested it. Works fine. Setting this RTBC.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks.

jjeff’s picture

Status: Fixed » Active
FileSize
74.41 KB

The change that was committed does not fix the problem that I originally posted a fix for.

The floats on the admin page are still not cleared so any divs that surround them will collapse.

See the attached jpg for an example of this. This will not happen in tables-based layouts, but standards-compliant layouts will have this problem.

jjeff’s picture

Please note that my original 1 line patch did solve this problem.

m3avrck’s picture

Status: Active » Fixed

Not applicable to Drupal, this is a problem with your theme.

Anonymous’s picture

Status: Fixed » Closed (fixed)