Skip to content

Instantly share code, notes, and snippets.

@arowM
Created June 24, 2018 13:49
Show Gist options
  • Save arowM/c2a8458eb5045dd3c6fbb11f4594e7a9 to your computer and use it in GitHub Desktop.
Save arowM/c2a8458eb5045dd3c6fbb11f4594e7a9 to your computer and use it in GitHub Desktop.
simple message box
<html>
<head>
<style>
.box {
position: relative;
border-radius: 0.4em;
border: solid 2px #333;
margin-top: 1em;
}
.box_title {
position: absolute;
top: -0.5em;
left: 50%;
padding: 0 1em;
background-color: #fff;
}
.box_content {
min-height: 10em;
padding: 1em;
}
</style>
</head>
<body>
<div class="box">
<div class="box_title">
title
</div>
<div class="box_content">
content
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment