WordPress.org

Make WordPress Core

Changeset 17299


Ignore:
Timestamp:
01/14/2011 05:52:51 PM (11 years ago)
Author:
nacin
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/admin-bar.php

    r17296 r17299  
    308308 */
    309309function _admin_bar_bump_cb() { ?>
    310 <style type="text/css">body { padding-top: 28px !important; }</style>
     310<style type="text/css">
     311    html { margin-top: 28px !important; }
     312    * html body { margin-top: 28px !important; }
     313</style>
    311314<?php
    312315}
Note: See TracChangeset for help on using the changeset viewer.