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: http://svn.automattic.com/wordpress/trunk@17299 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6423c620f8
commit
ccc6cfaafd
|
@ -307,7 +307,10 @@ function wp_admin_bar_header() { ?>
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
function _admin_bar_bump_cb() { ?>
|
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
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue