I have a simple example of a div, which I want to rotate 180 degrees Horizontally, my example rotates vertically which I don't want
<!DOCTYPE html>
<html>
<head>
<style>
div {
width: 200px;
height: 100px;
background-color: yellow;
/* Rotate div */
-ms-transform: rotate(27deg); /* IE 9 */
-webkit-transform: rotate(37deg); /* Chrome, Safari, Opera */
transform: rotate(37deg);
}
</style>
</head>
<body>
<div>Hello</div>
<br>
</body>
</html>
Effect: Turn card
Add the following to your CSS. There are other ways to do it like with JQuery libraries, but it's not necessary. Only with pure CSS can you do it.