Skip to content

Instantly share code, notes, and snippets.

@basecss
Created November 22, 2013 06:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save basecss/7595527 to your computer and use it in GitHub Desktop.
Save basecss/7595527 to your computer and use it in GitHub Desktop.
dabblet.com 预览 gist 代码片段
body {
margin: 0;
padding: 0;
background: #09F;
}
.dialog {
position: absolute;
left: 50%;
top: 50%;
width: 500px;
-webkit-transform: translate(-50%, -50%);
border: 5px solid rgba(0,0,0,0.5);
border-radius: 3px;
}
.dialog .hd {
height: 42px;
background: #FFF;
border-bottom: 1px solid #CCC;
}
.dialog .bd {
height: 240px;
background: #FFF;
}
.dialog .ft {
height: 40px;
border-top: 1px solid #CCC;
background: #f7f7f7;
}
<div class="dialog">
<div class="hd"></div>
<div class="bd"></div>
<div class="ft"></div>
</div>
{"view":"split-vertical","fontsize":"120","seethrough":"","prefixfree":"","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment