en.javascript.info/8-css-for-js/11-margin/negative-margin-bottom.view/index.html
2015-03-09 19:02:13 +03:00

40 lines
No EOL
1 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
.content {
background: #aef;
padding: 1em 2em 2em 2em;
margin-bottom: -1em;
}
.comment {
margin: 0 1em;
padding: .2em;
text-align: center;
background: black;
color: white;
}
</style>
</head>
<body>
<div>У DIV'а с холодильниками стоит margin-bottom: -1em</div>
<div class="content">
Наши холодильники - самые лучшие холодильники в мире! Наши холодильники - самые лучшие холодильники в мире! Наши холодильники - самые лучшие холодильники в мире! Наши холодильники - самые лучшие холодильники в мире!
</div>
<span class="comment">
Так считают: 5 человек
</span>
<span class="comment">
Оставьте <u>свой</u> отзыв!
</span>
</body>
</html>