You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Актуальные контакты:
Telegram: @Nikker_web
E-Mail: tarasevich.email@gmail.com
Портфолио https://www.behance.net/d4d4186e
Разрабатываю дизайн групп в соц сетях, сайтов, приложений, другой дизайн под заказ
Актуальные контакты:
Telegram: @Nikker_web
E-Mail: tarasevich.email@gmail.com
Разрабатываю дизайн групп в соц сетях, сайтов, приложений, другой дизайн под заказ
Портфолио https://www.behance.net/d4d4186e
Question
artylion
html код:
<body>
<div id="wrapper">
<div id="block">
<p>Супер текст</p>
</div><!--#header-->
</div><!--#wrapper-->
</body>
css код:
#wrapper {margin: 0 auto;
width: 800px;}
#block {height: 150px;
background: #009933;}
#block p {text-align: center;
font-size: 26px;
margin-top: 20px;
background:#0099FF;}
Собственно вопрос: почему margin-top для "p" делает отступ от окна браузера, а не от блока #block.
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.