Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<!DOCTYPE html>
<title>CSS3 rotate date</title>
<style type="text/css">
.datum {
position: relative;
width: 80px;
height: 60px;
font-family: Arial;
color: #FFF;
background-color: #424242;
.nap, .honap, .ev {
position: absolute;
.nap {
font-size: 30px;
top: 20px;
left: 11px;
.honap {
top: 1px;
left: 3px;
font-size: 18px;
.ev {
top: 20px;
right: -10px;
font-size: 20px;
transform: rotate(-90deg); /*elforgatás*/
-ms-transform: rotate(-90deg); /* IE 9 */
-webkit-transform: rotate(-90deg); /* Safari és Chrome */
-o-transform: rotate(-90deg); /* Opera */
-moz-transform: rotate(-90deg); /* Firefox */
<div class="datum">
<span class="nap">15</span>
<span class="honap">Június</span>
<span class="ev">2012</span>
Copy link

HTML5ugyesen commented Jun 29, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment