Skip to content

Instantly share code, notes, and snippets.

@HTML5ugyesen
Created June 29, 2013 04:54
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 HTML5ugyesen/5889826 to your computer and use it in GitHub Desktop.
Save HTML5ugyesen/5889826 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<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 */
}
</style>
</head>
<body>
<div class="datum">
<span class="nap">15</span>
<span class="honap">Június</span>
<span class="ev">2012</span>
</div>
</body>
</html>
@HTML5ugyesen
Copy link
Author

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