Skip to content

Instantly share code, notes, and snippets.

@oliverbth05
Created May 8, 2018 15:55
Show Gist options
  • Save oliverbth05/2c60882dd3bd0367b47d802776aa9773 to your computer and use it in GitHub Desktop.
Save oliverbth05/2c60882dd3bd0367b47d802776aa9773 to your computer and use it in GitHub Desktop.
CSS Card/Window (Works best with Bootstrap)
.card{
width: 300px;
margin: 10px;
border-radius: 8px;
}
.card_header{
text-align: center;
width: 100%;
background: rgb(200, 200, 260);
padding: 0px;
padding: 5px 0;
font-weight: lighter;
margin:0;
}
.sub-header{
border-bottom: 3px solid rgb(200, 200, 200);
padding-bottom: 4px;
font-weight: lighter;
padding: 0 5px;
margin-top: 15px;
}
#contentPane{
background: rgb(235, 235, 240);
margin-top: 0;
padding: 0 15px;
}
.card-content{
text-align: justify;
padding: 10px;
}
#cardFooter{
background: rgb(200, 200, 260);
width: 100%;
height: 15px;
}
<div class = "card">
<h3 class = "card_header">
Header
</h3>
<div id = "contentPane">
<h6 class = "sub-header">
Sub-Header
</h6>
<p class = "card-content">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</p>
</div>
<div id = "cardFooter">
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment