-2

How can I make my Website completely Borderless? I always get these Border which is supper annoying. Here's how it looks:

enter image description here

Can someone please help me fix this? I currently am making a website as a Project for my School, so please be kind.

Alfabravo
  • 7,493
  • 6
  • 46
  • 82
Janott
  • 1
  • 2
  • Showing us a picture of the result is all very well, but we can't see what is causing that effect without a [mcve] – Quentin Apr 11 '17 at 15:33
  • show your codes so that everyone can help you fix it – Grinex Apr 11 '17 at 15:34
  • Inspect your site using the dev tools for your browser (hit f12). You should be able to locate the element that has the top border and appropriately set the border to 0. – scrappedcola Apr 11 '17 at 15:39

2 Answers2

3

By default, all browsers add a margin to html and body tags. There is much more to this; they are called user-agent-stylesheet.

You need to edit your stylesheet (css) and add:

html, body {
  margin: 0;
  /** Possibly padding too **/
  padding: 0;
}

I suggest reading about reset rules.

Community
  • 1
  • 1
Abdul Sadik Yalcin
  • 1,744
  • 2
  • 19
  • 50
0
<style>
class_name{border-style: none;}
</style>