+ 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

11th May 2022, 9:22 PM
Lalala
Lalala - avatar
2 Respostas
+ 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.
11th May 2022, 10:12 PM
PanicS
PanicS - avatar
+ 1
CSS: * { margin:0; padding:0; }
11th May 2022, 9:40 PM
Chris Coder
Chris Coder - avatar