Opened 11 years ago
Closed 10 years ago
#26648 closed defect (bug) (duplicate)
Div is not cleared after floated element in /wp-admin/themes.php
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.8 |
Component: | Themes | Keywords: | has-patch |
Focuses: | ui, administration | Cc: |
Description
Div (div.theme-browser) is not cleared after the floated element h2 ( "Themes" heading ). Because of this it will not take any margin or padding properly, if needs to apply in future.
So div.theme-browser needs to be cleared after floated element by adding class "clear".
Attachments (3)
Change History (13)
#5
follow-up:
↓ 7
@
11 years ago
- Version changed from trunk to 3.8
Version number indicates the earliest affected version.
Because of this it will not take any margin or padding properly, if needs to apply in future.
As long as everything is currently displayed as expected, I don't see this as an issue. If we decide to add a margin or padding in the future, we can add the clear
class at the same time.
#7
in reply to:
↑ 5
@
11 years ago
Replying to SergeyBiryukov:
Version number indicates the earliest affected version.
Because of this it will not take any margin or padding properly, if needs to apply in future.
As long as everything is currently displayed as expected, I don't see this as an issue. If we decide to add a margin or padding in the future, we can add the
clear
class at the same time.
That is fine but it is the css concept that whenever there is an floated element, it should clear immediately just before non-floated element; otherwise its parent container would show height and width as 0px. Also floated element does not occupy space, but its neighbor should start next to that element, in current scenario it is also covering over floated h2 element.
As it is WordPress, we all expect it to follow all the standards. :)
Screenshot of themes heading