Главная » Файлы » Прочие скрипты » CSS |
Стильное современное меню на CSS3 для uCoz
24.06.14, 18:46:04 | |
Сегодня набрёл на это замечательное меню и просто не мог не поделится им с пользователями apo-ucoz Для начала посмотрите ДЕМО Моё тестирование в фидле: КЛИК Установка: В самый низ вашего css вставляйте: Код #crumbs { text-align: center; } #crumbs ul { list-style: none; display: inline-table; } #crumbs ul li { display: inline; } #crumbs ul li a { display: block; float: left; height: 50px; background: #3498db; text-align: center; padding: 30px 40px 0 80px; position: relative; margin: 0 10px 0 0; font-size: 20px; text-decoration: none; color: #fff; } #crumbs ul li a:after { content:""; border-top: 40px solid transparent; border-bottom: 40px solid transparent; border-left: 40px solid #3498db; position: absolute; right: -40px; top: 0; z-index: 1; } #crumbs ul li a:before { content:""; border-top: 40px solid transparent; border-bottom: 40px solid transparent; border-left: 40px solid #d4f2ff; position: absolute; left: 0; top: 0; } #crumbs ul li:first-child a { border-top-left-radius: 10px; border-bottom-left-radius: 10px; } #crumbs ul li:first-child a:before { display: none; } #crumbs ul li:last-child a { padding-right: 80px; border-top-right-radius: 10px; border-bottom-right-radius: 10px; } #crumbs ul li:last-child a:after { display: none; } #crumbs ul li a:hover { background: #fa5ba5; } #crumbs ul li a:hover:after { border-left-color: #fa5ba5; } Следующий код в то место, где должно быть само меню: Код <div id="crumbs"> <ul> <li> <a href="#">Пункт 1</a> </li> <li> <a href="#">Пункт 2</a> </li> <li> <a href="#">Пункт 3</a> </li> </ul> </div> Материал подготовлен Apocalypse | |
Просмотров: 603 | Загрузок: 0 | |
Всего комментариев: 0 | |
| |