body { margin: 20px auto; width: 60%; background: #000 url("/bg.jpg"); margin-bottom: 10px; } nav ul, footer ul { font-family:'Helvetica', 'Sans-Serif'; padding: 0; list-style: none; font-weight: bold; } nav ul li, footer ul li { display: inline; margin-right: 20px; } a { text-decoration: none; color: #9CACCC; } a:hover { text-decoration: underline; } h1 { font-size: 3em; font-family:'Helvetica', 'Sans-Serif'; color: #ABB2BF; } p { font-size: 1.5em; line-height: 1.4em; color: #ABB2BF; } footer { border-top: 1px solid #2F343F; font-size: .8em; } ul.posts { margin: 20px auto 40px; font-size: 1.5em; } ul.posts li { list-style: none; } img { border:1px solid #2F343F; border-radius: 3px; } #projects .thumb { cursor: pointer; border-radius: 16px; float: left; margin: 5px; width: 312px; height: 250px; position: relative; overflow: hidden; } #projects .thumb img { position: absolute; left: 0; -webkit-transition: all 300ms ease-out; -moz-transition: all 300ms ease-out; -o-transition: all 300ms ease-out; -ms-transition: all 300ms ease-out; transition: all 300ms ease-out; } #projects .thumb .thumbcaption { background-color: #000; background-color: rgba(0,0,0,0.8); position: absolute; color: #fff; z-index: 100; -webkit-transition: all 300ms ease-out; -moz-transition: all 300ms ease-out; -o-transition: all 300ms ease-out; -ms-transition: all 300ms ease-out; transition: all 300ms ease-out; left: 0; } #projects .thumb .thumbcaption { height: 30px; width: 100%; display: block; bottom: -30px; line-height: 25pt; text-align: center; } #projects .thumb:hover .thumbcaption { -moz-transform: translateY(-100%); -ms-transform: translateY(-100%); -o-transform: translateY(-100%); -webkit-transform: translateY(-100%); transform: translateY(-100%); }