# Margin appearing at top of page

**URL:** <https://forum.kirupa.com/t/margin-appearing-at-top-of-page/310134>\
**Category:** web dev\
**Created:** [June 2, 2010, 2:40pm UTC](https://forum.kirupa.com/t/margin-appearing-at-top-of-page/310134 "2010-06-02T14:40:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nnnniiiicccc](https://avatars.discourse-cdn.com/v4/letter/n/49beb7/32.png) [@nnnniiiicccc](https://forum.kirupa.com/u/nnnniiiicccc)\
**Post date:** [June 2, 2010, 2:40pm UTC](https://forum.kirupa.com/t/margin-appearing-at-top-of-page/310134/1 "2010-06-02T14:40:20Z")

</div>

Hi Can anyone help?

How do i stop the margin (rougly 10px) automatcially appearing at the top of my webpage. I had solved the problem by using:

\<body topmargin=“0”\>

However when i submitted my site to the W3C Markup Vaildation Service… it picked \<body topmargin=“0”\> out as an error.

Does anyone know of another way of doing this perhaps using css?

Thanks
