Title: CSS inheritance
Last modified: August 21, 2016

---

# CSS inheritance

 *  [mrling](https://wordpress.org/support/users/mrling/)
 * (@mrling)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/css-inheritance-1/)
 * Theme: Twenty Twelve child
 * I am developing a site on my local WAMP server, and want to remove the top margin
   so the header touches the top of the page. Using firebug, I can click on the 
   html, `<div class="hfeed site" id="page">`, and see that the following CSS controls
   the top margin: `body .site {margin-top: 3.42857rem;}`. However, when I try to
   change this in my child theme stylesheet, save, and refresh…the top margin remains.
   Any ideas?
    Here are some methods I’ve tried: `body .site {margin-top: 0rem;}``
   body #page .site {margin-top: 0rem;}` `body .hfeed site #page {margin-top: 0rem;}``
   html body.home div#page.hfeed` <—(this is what firebug gives me when I copy CSS
   path)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Pioneer Web Design](https://wordpress.org/support/users/swansonphotos/)
 * (@swansonphotos)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/css-inheritance-1/#post-3943160)
 * Try:
 * `#page .hfeed {margin-top: 0 !important;)`
 * You are using a Child Theme?
 *  Thread Starter [mrling](https://wordpress.org/support/users/mrling/)
 * (@mrling)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/css-inheritance-1/#post-3943341)
 * Yes, I am using a child theme of twenty twelve. Also, I tried, `#page .hfeed {
   margin-top: 0 !important;}` ,but it didn’t work 🙁

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘CSS inheritance’ is closed to new replies.

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [inheritance](https://wordpress.org/support/topic-tag/inheritance/)
 * [margin](https://wordpress.org/support/topic-tag/margin/)
 * [twenty twelve](https://wordpress.org/support/topic-tag/twenty-twelve/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [mrling](https://wordpress.org/support/users/mrling/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/css-inheritance-1/#post-3943341)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
