I am newbie in CSS coding. Is there any easy option in CSS to make "mirror" of menu which is constructed like below. I would like to get exactly the same menu but in mirror.
HTML:
<ul class="nav">
<li class="blue"><a href="/index.php">Home</a></li>
<li class="red"><a href="#">About</a></li>
<li class="green"><a href="#">Contact</a></li>
</ul>
</div>
and CSS:
.navbox {
float: left;
position: relative;
}
ul.nav {
background: url("shadow.png") no-repeat scroll 0 0 transparent;
display: block;
left: 0;
list-style: none outside none;
padding: 60px 0;
position: relative;
top: 0;
width: 200px;
}
.nav li a {
color: white;
display: block;
font-size: 14px;
margin: 5px 0 0;
padding: 7px 15px;
text-decoration: none;
width: 100px;
}
.nav li a:hover {background: url("border.png") no-repeat scroll 0 0 black;
color: white;
padding: 7px 15px 7px 30px;}
.blue a { background: url("border.png") no-repeat scroll 0 0 blue;}
.red a { background: url("border.png") no-repeat scroll 0 0 red;}
.green a {background: url("border.png") no-repeat scroll 0 0 green;}
Hello again and thanks for the answers.
It almost solves my problem:
.mirror {
display:block;
-moz-transform: matrix(-1, 0, 0, 1, 0, 0);
-webkit-transform: matrix(-1, 0, 0, 1, 0, 0);
-o-transform:matrix(-1, 0, 0, 1, 0, 0);
}
But, is there any option which could avoid "mirroring" of the text? I mean:
<li class="red"><a href="#">About</a></li>
<li class="green"><a href="#">Contact</a></li>
That text stay without "mirroring"?