0

i am create html page in that i have to two div inside other
My issue is one div is for container and other for header

i made the margin 0px in both the div
but it showing the gap between the main window and first div

4
Contributors
7
Replies
27
Views
2 Years
Discussion Span
Last Post by shashikumar s g
1

All browsers have a set of default styling that's applied to HTML elements. What you should consider is applying a CSS "reset" so you can override the defaults. Its common in a reset file to apply margin and padding to 0 on many elements. This takes care of the mysterious space(s) you see on a variety of elements.

Edited by JorgeM

0
css code 
.mainpage
    {

       margin:0px;
       padding: 0px;
         font-family: "Times New Roman", Georgia, Serif;

    }
    .container
    { 
     font-size:14px;
      margin: 0px;
      border:1px solid black;
    }

    html code
    <body class="Main_page">
    <div class="container" >
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.