For admin bar padding, use margin on the html element instead of padding on the body element. Causes far less conflicts. props aldenta, fixes #16222.
git-svn-id: https://develop.svn.wordpress.org/trunk@17299 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b735118cd7
commit
fe7705a8cb
@ -307,7 +307,10 @@ function wp_admin_bar_header() { ?>
|
||||
*
|
||||
*/
|
||||
function _admin_bar_bump_cb() { ?>
|
||||
<style type="text/css">body { padding-top: 28px !important; }</style>
|
||||
<style type="text/css">
|
||||
html { margin-top: 28px !important; }
|
||||
* html body { margin-top: 28px !important; }
|
||||
</style>
|
||||
<?php
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user