Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to delete margin-top: 32px !important from twenty twelve

I want to remove the margin-top property from twenty twelve theme. This is the default theme provided by wordpress. The sample of the code what I found with the help of firebug.

html{
     margin-top: 32px !important;
    }
like image 406
uniqueman Avatar asked Aug 25 '14 17:08

uniqueman


People also ask

How do I get rid of top margin?

You can remove this margin by setting the top and left margin to zero. Like the padding and border, the sizes of specific sides of the margin can be set using margin-left , margin-right , margin-top , and margin-bottom .

How do I get rid of the top margin in WordPress?

If you want to disable the top and bottom margin for the entire website, go to the General Options > General Settings section of the Customizer (Appearance > Customize) and add 0 as Top and Bottom in the Content Padding field.

How do you set the top margin?

Syntax. The margin-top property is specified as the keyword auto , or a <length> , or a <percentage> . Its value can be positive, zero, or negative.

Is margin-top and top the same?

"Margin is that space between the edge of an element's box and the edge of the complete box, such as the margin of a letter. 'top' displaces the element's margin edge from the containing blocks box, such as that same piece of paper inside a cardboard box, but it is not up against the edge of the container."


1 Answers

function remove_admin_login_header() {
    remove_action('wp_head', '_admin_bar_bump_cb');
}
add_action('get_header', 'remove_admin_login_header');
like image 162
l2aelba Avatar answered Oct 12 '22 13:10

l2aelba