How to remove margin space around body or clear default css styles

后端 未结 7 1403
夕颜
夕颜 2020-11-22 06:09

I am admittedly a beginner, but I also did a fair amount of searching before posting this. There seems to be extra space around my div element. I also would like to point ou

7条回答
  •  感情败类
    2020-11-22 06:38

    I had the same problem and my first

    element which was at the top of the page and also had a browser webkit default margin. This was pushing my entire div down which had the same effect you were talking about so watch out for any text-based elements that are at the very top of the page.

    
    
      
        
        My Website
      
      
          

    Text in Paragraph

    So just remember to check all child elements not only the html and body tags.

提交回复
热议问题