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:
nacin 2011-01-14 17:52:51 +00:00
parent 6423c620f8
commit ccc6cfaafd
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
}