Skip to content
ww.wp.xz.cn
  • Showcase
  • Plugins
  • Themes
  • Hosting
  • News
    • Learn WordPress
    • Documentation
    • Education
    • Forums
    • Developers
    • Blocks
    • Patterns
    • Photos
    • Openverse ↗︎
    • WordPress.tv ↗︎
    • About WordPress
    • Make WordPress
    • Events
    • Five for the Future
    • Enterprise
    • Gutenberg ↗︎
    • Job Board ↗︎
    • Swag Store ↗︎
  • Get WordPress
Get WordPress
ww.wp.xz.cn

Forums

  • Welcome to Support
  • Guidelines
  • Get involved
  • Log in
  • Welcome to Support
  • Guidelines
  • Get involved
  • Log in
Skip to content

Forums / Themes and Templates / problem with sub menu

problem with sub menu

  • zeous

    (@zeous)


    10 years, 11 months ago

    hello
    I have problem with submenu when I move mouse on sub menu the hover effect not work carefully like this photo :

    orange collor is hover—

    <div class="menubar">
      <div class="middle">
    <?php wp_nav_menu( array( 'theme_location' => 'top-menu', 'container' =>'nav', 'menu_class' =>'topnav' ) ); ?>
            <div class="searchar">
              <form>
                    <input type="text" name="#" placeholder="جستجو کنید ..." >
                    <input type="submit" name="#" value="">
              </form>
            </div>
      </div>
    </div>
    .menubar {
    width: 100%;
    height: 45px;
    background: #424242
    }
    .middle {
    width: 1000px;
    margin: auto
    }
    .menubar ul {
    list-style: none
    }
    .menubar ul:after {
      content: ""; clear: both; display: block;
    }
    .menubar ul li {
    float: right;
    position: relative;
    }
    .menubar ul li a {
    color: #f5f5f5;
    text-decoration: none;
    padding: 12px 15px;
    line-height: 15px;
    display: block;
    font: 15px iMitra
    }
    .menubar ul li:hover {
    background: #303030
    }
    .menubar ul li ul {
    display: none;
    position: absolute;
    top: 44px;
    right: 0px;
    background: #303030;
    width: 170px;
    z-index: 9999;
    visibility: hidden;
    }
    .menubar ul li:hover ul {
    display: block;
    visibility: visible;
    }
    .menubar ul li ul li {
    float: none
    }
    .menubar ul li ul li:hover {
    background: #e74c3c
    }

The topic ‘problem with sub menu’ is closed to new replies.

Tags

  • hover
  • 0 replies
  • 1 participant
  • Last reply from: zeous
  • Last activity: 10 years, 11 months ago
  • Status: not resolved

Topics

Topics with no replies

Non-support topics

Resolved topics

Unresolved topics

All topics

  • About
  • News
  • Hosting
  • Privacy
  • Showcase
  • Themes
  • Plugins
  • Patterns
  • Learn
  • Documentation
  • Developers
  • WordPress.tv ↗
  • Get Involved
  • Events
  • Donate ↗
  • Five for the Future
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
ww.wp.xz.cn
ww.wp.xz.cn
  • Visit our X (formerly Twitter) account
  • Visit our Bluesky account
  • Visit our Mastodon account
  • Visit our Threads account
  • Visit our Facebook page
  • Visit our Instagram account
  • Visit our LinkedIn account
  • Visit our TikTok account
  • Visit our YouTube channel
  • Visit our Tumblr account
Code is Poetry
The WordPress® trademark is the intellectual property of the WordPress Foundation.