0

Margin

I want to make some margin-top for my page but it moves also the button that should be on top of the page. How to repair this? https://code.sololearn.com/WTMq5Xh5Kyy6/?ref=app (Button should be in left top corner but text needs to have a 30px top margin)

6th Nov 2022, 6:45 PM
Tomasz Smoleń
Tomasz Smoleń - avatar
3 Respuestas
+ 3
button { top: 10px; /* semicolon */ } article { margin-top: 90px; }
6th Nov 2022, 8:03 PM
SoloProg
SoloProg - avatar
+ 1
Thanks, i didnt notice
6th Nov 2022, 8:09 PM
Tomasz Smoleń
Tomasz Smoleń - avatar
0
I wanted to make my own hamburger menu but margin that should work on <article> works on button also
6th Nov 2022, 6:51 PM
Tomasz Smoleń
Tomasz Smoleń - avatar