How to make vertically rotated links in HTML?

女生的网名这么多〃 提交于 2019-12-04 10:13:35

Here is my solution. I have updated your HTML and CSS to allow for this. Here is a live example: http://jsfiddle.net/8RTaV/4/

HTML:

<div id='left_column_date_search'>
    <a href='#' class='a1'>Dnes</a>
    <a href='#' class='a2 selected'>Zítra</a>
    <a href='#' class='a3'>Pátek</a>
    <a href='#' class='a4'>Sobota</a>  
</div> <!-- end: #left_column_date_search -->

CSS:

#left_column_date_search {
    background: #000;
    width: 36px;
    float: left;
}
#left_column_date_search a {
    display: block;
    height: 60px;
    width: 60px;
    color: #fff;
    text-shadow: 1px 0px 0px #000;
    text-decoration: none;
    line-height: 31px;
    margin: 5px 0 0;
    text-align: center;
}
#left_column_date_search a.selected {
/*    background: url(/images/structure/city-search-grad-selected.jpg); */
    color: #660000;
    text-shadow: 0px 1px 0px #9e4a4a;
}
#left_column_date_search a:hover {
    background: url(/images/structure/city-search-grad-hover.png);
}
#left_column_date_search a{
    -webkit-transform: rotate(270deg);  
    -moz-transform: rotate(270deg);
    -ms-transform: rotate(270deg);
    -o-transform: rotate(270deg);
    transform: rotate(270deg); 
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!