Loading...
Графика/Дизайн | кнопки вертикально
пацаны как сделать кнопки вертикально, они у меня получаются в 2 строчки,

.card {
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
transition: 0.3s;
width: 190px;
border-radius: 5px;
float:left;
}

.card:hover {
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}

img {
border-radius: 5px 5px 0 0;
}

.containers {
background:rgb(173,216,230);
padding: 2px 16px;
}

.clear:after {
content: " ";
display:inline- block;
clear: both;
}

nav .menu1 {
margin-top: 50px;
text-align: center;
}

nav .menu1 ul {
list-style-type: none;
display: inline-block;
}

nav .menu1 ul li {
float:right;
width: 114px;
height: 140px;
border-left: 1px solid;
border-color: #e3e3e3;
background-color: #fff;
-moz-transition: background-color 0.2s linear 0s;
-ms-transition: background-color 0.2s linear 0s;
-o-transition: background-color 0.2s linear 0s;
-webkit-transition: background-color 0.2s linear 0s;
transition: background-color 0.2s linear 0s;
}

nav .menu1 ul li:last-child {
border-right: 1px solid #e3e3e3;
}

nav .menu1 ul li a {
display: table;
width: 100%;
height: 100%;
position: relative;
text-align: center;
}

nav .menu1 a i {
display: table-cell;
vertical-align: middle;
color: #a3a7ad;
font-size: 23px;
-moz-transition: all 0.2s linear 0s;
-ms-transition: all 0.2s linear 0s;
-o-transition: all 0.2s linear 0s;
-webkit-transition: all 0.2s linear 0s;
transition: all 0.2s linear 0s;
}

nav .menu1 a i:before {
border: 2px solid;
border-color: #a3a7ad;
border-radius: 500px;
width: 41px;
display: inline-block;
height: 41px;
line-height: 37px;
-moz-transition: color 0.2s linear 0s, font-size 0.2s linear 0s, border-color 0.2s linear 0.2s, height 0.2s linear 0s, width 0.2s linear 0s, line-height 0.2s linear 0s;
-ms-transition: color 0.2s linear 0s, font-size 0.2s linear 0s, border-color 0.2s linear 0.2s, height 0.2s linear 0s, width 0.2s linear 0s, line-height 0.2s linear 0s;
-o-transition: color 0.2s linear 0s, font-size 0.2s linear 0s, border-color 0.2s linear 0.2s, height 0.2s linear 0s, width 0.2s linear 0s, line-height 0.2s linear 0s;
-webkit-transition: color 0.2s linear 0s, font-size 0.2s linear 0s, border-color 0.2s linear 0.2s, height 0.2s linear 0s, width 0.2s linear 0s, line-height 0.2s linear 0s;
transition: color 0.2s linear 0s, font-size 0.2s linear 0s, border-color 0.2s linear 0.2s, height 0.2s linear 0s, width 0.2s linear 0s, line-height 0.2s linear 0s;
}

nav .menu1 a .link-text {
position: absolute;
bottom: 13px;
right: 19px;
color: #565a60;
font-size: 14px;
text-transform: uppercase;
-moz-transition: all 0.2s linear 0s;
-ms-transition: all 0.2s linear 0s;
-o-transition: all 0.2s linear 0s;
-webkit-transition: all 0.2s linear 0s;
transition: all 0.2s linear 0s;
}

nav .menu1 ul li:hover {
background-color: #ffea00;
border-color: #ffea00;
}

nav .menu1 ul li:hover + li {
border-color: #ffea00;
}

nav .menu1 ul li:hover + li:last-child {
border-right-color: #e3e3e3;
}

nav .menu1 ul li:hover .link-text {
opacity: 0;
}

nav .menu1 ul li:hover i {
color: #565a60;
font-size: 43px;
}

nav .menu1 ul li:hover i:before {
border-color: transparent;
border-radius: 500px;
width: 66px;
height: 66px;
line-height: 60px;
-moz-transition: color 0.2s linear 0s, font-size 0.2s linear 0s, border-color 0s linear 0.2s, height 0.2s linear 0s, width 0.2s linear 0s, line-height 0.2s linear 0s;
-ms-transition: color 0.2s linear 0s, font-size 0.2s linear 0s, border-color 0s linear 0.2s, height 0.2s linear 0s, width 0.2s linear 0s, line-height 0.2s linear 0s;
-o-transition: color 0.2s linear 0s, font-size 0.2s linear 0s, border-color 0s linear 0.2s, height 0.2s linear 0s, width 0.2s linear 0s, line-height 0.2s linear 0s;
-webkit-transition: color 0.2s linear 0s, font-size 0.2s linear 0s, border-color 0s linear 0.2s, height 0.2s linear 0s, width 0.2s linear 0s, line-height 0.2s linear 0s;
transition: color 0.2s linear 0s, font-size 0.2s linear 0s, border-color 0.2s linear 0s, height 0.2s linear 0s, width 0.2s linear 0s, line-height 0.2s linear 0s;
}


Изображение

------
80213_v87yKbQXTFo.jpg (313.3 Kb)
Скачиваний: 106
вот сами кнопки
------
80214_css3transitionsmenu131017.zip (2.2 Kb)
Скачиваний: 102
В две строчки это и есть вертикально.
margin: -25px; попробуй, или меньше
поставь на хостинг или ларк
MARAZM, пробовал , не помогло
Онлайн: 1
Время:
Gen. 0.0725
(c) ByMAS.RU 2010-2025