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:
Andrew Nacin 2011-01-14 17:52:51 +00:00
parent b735118cd7
commit fe7705a8cb
1 changed files with 4 additions and 1 deletions

View File

@ -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
}