Width question | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Width question

https://code.sololearn.com/WTxXn439vSPt/?ref=app So in the Chrome Browser, the width reaches to the end of the screen and cuts off the word "Hello". How can I make the white space equal on both sides? I've tried width:99%; but is that equal to the left side? (If you don't know what I'm talking about, look at the div. Look left until you reach the end of the div. There's white space in between the div and the edge of the screen.)

25th Jul 2018, 5:40 PM
Daniel Cooper
Daniel Cooper - avatar
1 Answer
+ 1
Issue is caused by default body margin Two solutions 1. body{ margin:0; } 2. delete position: fixed #Header{ position: absolute; top: 0; left: 0; right: 0; }
25th Jul 2018, 6:32 PM
JME