margin unwanted spacing, ALL sizes
up vote
-1
down vote
favorite
no way I could fix this issue HTML tag has some margin-right. what's the fix?
* {
box-sizing: border-box;
}
html,
body {
background-color: rgb(255, 255, 255);
font-family: 'Titillium Web', sans-serif;
font-size: 18px;
}![]](https://i.stack.imgur.com/DCl7H.png)
css
add a comment |
up vote
-1
down vote
favorite
no way I could fix this issue HTML tag has some margin-right. what's the fix?
* {
box-sizing: border-box;
}
html,
body {
background-color: rgb(255, 255, 255);
font-family: 'Titillium Web', sans-serif;
font-size: 18px;
}![]](https://i.stack.imgur.com/DCl7H.png)
css
3
if you identified that it is a margin-right then why you didn't try to set margin-right to 0?
– Temani Afif
Nov 18 at 19:43
add a comment |
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
no way I could fix this issue HTML tag has some margin-right. what's the fix?
* {
box-sizing: border-box;
}
html,
body {
background-color: rgb(255, 255, 255);
font-family: 'Titillium Web', sans-serif;
font-size: 18px;
}![]](https://i.stack.imgur.com/DCl7H.png)
css
no way I could fix this issue HTML tag has some margin-right. what's the fix?
* {
box-sizing: border-box;
}
html,
body {
background-color: rgb(255, 255, 255);
font-family: 'Titillium Web', sans-serif;
font-size: 18px;
}![]](https://i.stack.imgur.com/DCl7H.png)
* {
box-sizing: border-box;
}
html,
body {
background-color: rgb(255, 255, 255);
font-family: 'Titillium Web', sans-serif;
font-size: 18px;
}* {
box-sizing: border-box;
}
html,
body {
background-color: rgb(255, 255, 255);
font-family: 'Titillium Web', sans-serif;
font-size: 18px;
}css
css
edited Nov 18 at 19:46
Zohir Salak
2,4181414
2,4181414
asked Nov 18 at 19:41
Israel Belete
11
11
3
if you identified that it is a margin-right then why you didn't try to set margin-right to 0?
– Temani Afif
Nov 18 at 19:43
add a comment |
3
if you identified that it is a margin-right then why you didn't try to set margin-right to 0?
– Temani Afif
Nov 18 at 19:43
3
3
if you identified that it is a margin-right then why you didn't try to set margin-right to 0?
– Temani Afif
Nov 18 at 19:43
if you identified that it is a margin-right then why you didn't try to set margin-right to 0?
– Temani Afif
Nov 18 at 19:43
add a comment |
2 Answers
2
active
oldest
votes
up vote
0
down vote
The margin isn't actually on <html>, but rather on <body>, where most browsers adds 8px of margin by default:
TextYou can remove this by setting:
body {
margin: 0;
}
This can be seen in the following:
body {
margin: 0;
}Textadd a comment |
up vote
0
down vote
This should fix it
html, body {
background-color: rgb(255, 255, 255);
font-family: 'Titillium Web', sans-serif;
font-size: 18px;
margin-right: 0;
}
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
The margin isn't actually on <html>, but rather on <body>, where most browsers adds 8px of margin by default:
TextYou can remove this by setting:
body {
margin: 0;
}
This can be seen in the following:
body {
margin: 0;
}Textadd a comment |
up vote
0
down vote
The margin isn't actually on <html>, but rather on <body>, where most browsers adds 8px of margin by default:
TextYou can remove this by setting:
body {
margin: 0;
}
This can be seen in the following:
body {
margin: 0;
}Textadd a comment |
up vote
0
down vote
up vote
0
down vote
The margin isn't actually on <html>, but rather on <body>, where most browsers adds 8px of margin by default:
TextYou can remove this by setting:
body {
margin: 0;
}
This can be seen in the following:
body {
margin: 0;
}TextThe margin isn't actually on <html>, but rather on <body>, where most browsers adds 8px of margin by default:
TextYou can remove this by setting:
body {
margin: 0;
}
This can be seen in the following:
body {
margin: 0;
}TextTextTextbody {
margin: 0;
}Textbody {
margin: 0;
}Textanswered Nov 18 at 19:44
Obsidian Age
26.3k72244
26.3k72244
add a comment |
add a comment |
up vote
0
down vote
This should fix it
html, body {
background-color: rgb(255, 255, 255);
font-family: 'Titillium Web', sans-serif;
font-size: 18px;
margin-right: 0;
}
add a comment |
up vote
0
down vote
This should fix it
html, body {
background-color: rgb(255, 255, 255);
font-family: 'Titillium Web', sans-serif;
font-size: 18px;
margin-right: 0;
}
add a comment |
up vote
0
down vote
up vote
0
down vote
This should fix it
html, body {
background-color: rgb(255, 255, 255);
font-family: 'Titillium Web', sans-serif;
font-size: 18px;
margin-right: 0;
}
This should fix it
html, body {
background-color: rgb(255, 255, 255);
font-family: 'Titillium Web', sans-serif;
font-size: 18px;
margin-right: 0;
}
answered Nov 18 at 19:45
B.Mat
366
366
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53364763%2fhtml-margin-unwanted-spacing-all-sizes%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
3
if you identified that it is a margin-right then why you didn't try to set margin-right to 0?
– Temani Afif
Nov 18 at 19:43