http://cssmenumaker.com/menu/tabbed-chrome-and-blue

HTML

<div id="topMenu">
            <ul>
                <li><a href="#">Home</a></li>
                <li><a href="#">PRODUCTS</a></li>
                <li><a href="#">Contact</a></li>
                <li><a href="#">Messages</a></li>
                <li><a href="#">Lists</a></li>
                <li><a href="#">Admin</a></li>
            </ul>
        </div>

CSS

<style>
        #topMenu {
            height: 30px;
            width: %;
            border-bottom: solid 2px #4cb6ea;
            text-align: right;
        }

            #topMenu ul {
                position: absolute;
                right: 30px;
                height: 30px;
                line-height: 30px;
            }

            #topMenu a {
                font-size: 16px;
                font-weight: bold;
                padding: 5px 15px 8px 15px;
                border-top: solid 2px #4cb6ea;
                border-left: solid 2px #4cb6ea;
                border-right: solid 2px #4cb6ea;
                border-top-left-radius: 5px;
                border-top-right-radius: 5px;
                background-color: #4cb6ea;
                color: #fff;
            }

                #topMenu a:hover {
                    color: #;
                    text-decoration: none;
                    background-color: #fff;
                }
    </style>

dropdown menu

HTML

<div id="top_banner">
            <div id="nav">
                <ul>
                    <li><a href="#" class="has_sub">My System</a>
                        <ul>
                            <li><a href="#">Change Password</a></li>
                            <li><a href="#">My Profile</a></li>
                        </ul>
                    </li>
                    <li><a href=</a></li>
                    <li><a href=</a></li>
                    <li><a href=</a></li>
                </ul>
            </div>
        </div>

CSS

<style>
        #top_banner {
            background-color: #F7F7F7;
            width: %;
            padding: 0px;
            margin: 0px;
            height: 35px;
        }

        #nav {
            position: absolute;
            right: 10px;
            margin: 0px;
            padding: 0px;
        }

            #nav ul ul {
                display: none;
            }

            #nav ul li:hover > ul {
                display: block;
            }

            #nav ul {
                background: #F7F7F7;
                padding:  20px;
                list-style: none;
                position: relative;
                display: inline-table;
                margin: 0px;
            }

                #nav ul:after {
                    content: "";
                    clear: both;
                    display: block;
                }

                #nav ul li {
                    float: left;
                }

                    #nav ul li:hover {
                        background: #b8b5b5;
                    }

                        #nav ul li:hover a {
                            color: #fff;
                        }

                    #nav ul li a {
                        display: block;
                        padding: 8px 20px 9px 20px;
                        color: #;
                        text-decoration: none;
                    }

                        #nav ul li a.has_sub {
                            background: url("icon_arrow_bottom.png") no-repeat right center;
                            background-position-x: 98px;
                        }

                #nav ul ul {
                    background: #b8b5b5;
                    padding: ;
                    position: absolute;
                    top: %;
                }

                    #nav ul ul li {
                        float: none;
                        border-top: 1px solid #ccc;
                        position: relative;
                        text-align: left;
                    }

                        #nav ul ul li a {
                            padding: 8px 20px 9px 20px;
                            color: #fff;
                        }

                            #nav ul ul li a:hover {
                                background: #9f9b9b;
                            }

                    #nav ul ul ul {
                        position: absolute;
                        left: %;
                        top: ;
                    }
    </style>

Css Study - 横向MENU的更多相关文章

  1. Css Study - 纵向Menu - By html and Css

    http://www.wikihow.com/Create-a-Dropdown-Menu-in-HTML-and-CSS HTML <div id="leftmenu"&g ...

  2. Css Study - Top Menu in Header 横向间隔的菜单

    .shortcut ul li { display: inline; } CSS <style> ol, ul { list-style: none; } html, body, ul, ...

  3. [转载] ul li css 做横向菜单

    原文地址: http://www.cnblogs.com/amylis_chen/archive/2011/09/24/2188398.html 第一步:建立一个无序列表 我们先建立一个无序列表,来建 ...

  4. 利用css制作横向和纵向时间轴

    Html代码: <div class="container"> <p>原文地址:http://www.cnblogs.com/xiaofeixiang/&l ...

  5. css study

    ---恢复内容开始--- html{filter:expression(document.execCommand("BackgroundImageCache",false,true ...

  6. CSS布局——横向两列布局

    1.固定两栏布局,使用float,注意对紧邻元素清除浮动影响.IE6在使用float布局同时设置横行margin的情况下会有双边距BUG,解决方案是加入_display:inline 代码如下: &l ...

  7. 纯css实现横向下拉菜单

    自己最近在捣腾css代码,不光是js能做很多有趣的东西,这货也可以做很多东西,现在把自己的一些作品分享给大家. 做得有点粗糙,大家根据这个思路来,可以自己修改修改. 关于demo:这是一个横向下拉的菜 ...

  8. css实现横向进度条和竖向进度条

    一.横向进度条 <html> <head> <title>横向进度条</title> <style type="text/css&quo ...

  9. 用CSS实现横向滚动条

    在进行app制作时,需要使用横向滚动条是内容展示更完善 首先,这是html代码: 这是CSS代码: 要点: 设置显示内容的宽 white-space是防止内容自动折行 overflow-y设置为hid ...

随机推荐

  1. [LintCode] Segment Tree Build 建立线段树

    The structure of Segment Tree is a binary tree which each node has two attributes start and end deno ...

  2. [CareerCup] 15.4 Types of Join 各种交

    15.4 What are the different types of joins? Please explain how they differ and why certain types are ...

  3. 第2章 使用JavaScript

    学习要点: 1.创建一张HTML页面 2.<Script>标签解析 3.JS代码嵌入的一些问题

  4. Html5 与 Html4 的区别

    HTML5是HTML标准的下一个版本.虽然HTML5没有完全颠覆HTML4,但是它们也有一些不同.最新最全的HTML5-HTML4对比信息 请看http://dev.w3.org/html5/html ...

  5. Varnish安装使用(初学)

    本人对varnish也是新手,这里记录一下安装步骤! 环境:centos6.6 varnish安装包下载:wget https://repo.varnish-cache.org/source/varn ...

  6. 微信小程序学习

    官方网站 https://mp.weixin.qq.com/debug/wxadoc/dev/index.html 项目结构介绍 -- MINA框架 https://mp.weixin.qq.com/ ...

  7. BizTalk动手实验(八)消息路由

    1 课程简介 通过本课程熟悉BizTalk消息由的机制 2 准备工作 1. 熟悉XML.XML Schema.XSLT等相关XML开发技术 2. 新建BizTalk空项目 3 演示 3.1 动态消息路 ...

  8. Java之方法重载(笔记)

    Java是根据参数类型和个数的不同实现重载. 1.当参数类型是基本类型,但不完全匹配. void test(int i) { } void test(float f) { } public stati ...

  9. Construct a tree from Inorder and Level order traversals

    Given inorder and level-order traversals of a Binary Tree, construct the Binary Tree. Following is a ...

  10. php解析一个url

    $url = "http://shopnc.localhost/shop/index.php?act=goods&op=index&goods_id=25220"; ...