• Курсы
  • Компилятор кода
  • Обсуждения
  • Цены
  • Teams
Menu
0

Margin problem [SOLVED]

I gave margin to h1 but the div also taking the margin. https://code.sololearn.com/WLesOz0wSlrP/?ref=app

cssh1margin-top
18th Apr 2021, 11:25 PM
Muhammad Imtiaz
Muhammad Imtiaz - avatar
2 ответов
+ 2
Change it to padding-top for either the h1 or the div. https://stackoverflow.com/questions/25114186/setting-the-top-margin-of-the-h1-element-in-the-header-does-not-work-as-expected
18th Apr 2021, 11:32 PM
ChaoticDawg
ChaoticDawg - avatar
+ 2
ChaoticDawg thanks
19th Apr 2021, 3:22 AM
Muhammad Imtiaz
Muhammad Imtiaz - avatar

Часто задают такие вопросы?

Учитесь эффективнее, бесплатно:

  • Введение в Python

    7.1M учащихся

  • Введение в Java

    4.7M учащихся

  • Введение в C

    1.5M учащихся

  • Введение в HTML

    7.5M учащихся

Смотреть все курсы
Актуальное сегодня
My codebits section is full of deleted codes
12 Votes
Ai generated practices
1 Votes
Where did mess up....
1 Votes
I have an error in a problem and I don't know what the correct answer is
1 Votes
Feedback on my portfolio
0 Votes
I need a siren sound
0 Votes
Yo this is madness
0 Votes
How can i insert files?
1 Votes
Where can I find python and SQL projects to work on for my portfolio that are beginner to intermediate?
1 Votes
help!!! How to build portfolio? I am in last year of highschool and still noob lol
0 Votes