Try to search your question here, if you can't find : Ask Any Question Now ?

How do I remove default spacing around my header strip

HomeCategory: stackoverflowHow do I remove default spacing around my header strip
Avatarwillson asked 1 week ago

Really simple code, the strip I created has a margin or spacing around it and I want it to fill the whole top side of the page.

How it looks

<!DOCTYPE html>
<html>
<head>
    <style>
    .header {
        background: #555;
        color: #f1f1f1;
        height: 100px;
        /*width: 100%;*/
        margin: 0; 
        padding: 0;
        border:none;
    }
    </style>
</head>
<body>
    <div class="header" id="myHeader">    

    </div>
</body>
<html>
1 Answers
Best Answer
AvatarMannu answered 1 week ago
Your Answer

10 + 18 =

Popular Tags

WP Facebook Auto Publish Powered By : XYZScripts.com