Skip to content

Instantly share code, notes, and snippets.

@yutaide
Created March 22, 2019 06:30
Show Gist options
  • Select an option

  • Save yutaide/78a379332040ce621ba4681c7e884172 to your computer and use it in GitHub Desktop.

Select an option

Save yutaide/78a379332040ce621ba4681c7e884172 to your computer and use it in GitHub Desktop.
画面の角との間にできる隙間を無くす
/*body(背景)にmargin: 0pxを指定することで
画像を貼った時にできる隙間が無くなります。*/
body{
margin: 0px;
}
/*これは画像を小さく表示させているだけです*/
img{
width: 500px;
height: auto;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment