+ 1
Web dev how to change it
https://code.sololearn.com/Wt96GMnTX4wr/?ref=app So I just copy pasted this into mine web page and I putted it into right top corner. But it taking up whole line . A huge empty space how can I fix it
2 Réponses
+ 2
As Chris Coder said, you need to reset some default style you get from your browser.
Each web browser have some default style, like color: black; background-color: white; font-size: 16px;
It also set some padding and margin to some elements.
With this code you select every element using * and reset margin and padding to 0.
You can in dev tools on your browser inspect elements and see every style element have, this is how you can find what style make problem with your design and fix it.
+ 1
CSS:
* {
margin:0;
padding:0;
}