Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8539893
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T11:28:30+00:00 2026-06-11T11:28:30+00:00

I am working on a wordpress menus. my sub menu image is little bend

  • 0

I am working on a wordpress menus. my sub menu image is little bend to angle. I have attached the image for better understandings. My problem is concerned with sub menu.

enter image description here

background image
enter image description here

I want the sub menu background image to expland according to content. I mean if I am having 2 sub menus menus then I dont want to show full heighted sub menu background

Please suggest how I can achieve this.

html

<ul id="menu" class="nav-main">
<li><a href="<?php bloginfo( 'url' ); ?>">HOME</a></li>
<li> <a href="<?php bloginfo( 'url' ); ?>/">Menu 1</a>
  <ul class="nav-sub submenuMenu1">
    <li><a href=""></a></li>
    <li><a href=""></a></li>
    <li><a href=""></a></li>
  </ul>
</li>
<li> <a href="<?php bloginfo( 'url' ); ?>">Menu 2</a>
  <ul class="nav-sub submenuMenu2">
    <li><a href=""></a></li>
    <li><a href=""></a></li>
    <li><a href=""></a></li>
  </ul>
</li>
<li> <a href="<?php bloginfo( 'url' ); ?>">Menu 3</a>
  <ul class="nav-sub submenuMenu3">
    <li><a href=""></a></li>
    <li><a href=""></a></li>
    <li><a href=""></a></li>
  </ul>
</li>
<li> <a href="<?php bloginfo( 'url' ); ?>/fundraise/">Menu 4</a>
  <ul class="nav-sub submenuMenu4">
    <li><a href=""></a></li>
    <li><a href=""></a></li>
    <li><a href=""></a></li>
  </ul>
</li>






#menu {
    width: 550px;
    height: auto;
    float: left;
    margin: 23px 0 0 62px;
}
#menu li {
    margin: 0 0 0 0;
    list-style-type:none;
}
#menu a {
    font-size: 14px;
    font-weight: bold;
    padding: 0 0 0 23px;
    text-decoration: none;
    text-shadow: 0.1em 0.1em #666;
}
ul.main-nav, ul.main-nav li {
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-nav {
    z-index: 597;
}
.main-nav li:hover > ul {
    visibility: visible;
}
.main-nav li.hover, .main-nav li:hover {
    z-index: 599;
    cursor: pointer;
}
.main-nav li {
    float:left;
    display:block;
}
.main-nav li a {
    float: left;
    display:block;
    margin: 0!Important;
}
ul.nav-sub {
    visibility: hidden;
    position: absolute;
    padding:0;
    top: 0;
    left: 0;
    z-index: 598;
}
ul.nav-sub li {
    list-style:none;
    display:block;
    padding: 0;
    float: left;
    padding: 5px;
}

ul.nav-sub li a {
    font-size: 12px!important;
    font-weight: bold;
    text-shadow: 0.1em 0.1em #666;
    text-transform:uppercase;
}

ul.nav-sub a:hover {
    text-decoration: underline!Important;
}
.submenuMenu{
    width: 649px;
    height: 264px;
    float: left;
    margin: 39px 0 0 3px;
    padding: 11px 0 0 0!important;
    background: url(../img/bg_submenu.png) -1px 0 no-repeat;
}

.submenuMenu li {
    width: 300px!important;
    margin: 0!Important;
    padding: 5px 200px 5px 117px!important;
}

my subMenu class is having the sub menu background. I know this is not ideal code but I only wanted to know how to stick it to top according to content while background image is bend to an angle.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T11:28:31+00:00Added an answer on June 11, 2026 at 11:28 am

    Remove the height specified for submenuMenu. Add height as auto

    .submenuMenu{
        width: 649px;
        height: auto;
        float: left;
        margin: 39px 0 0 3px;
        padding: 11px 0 0 0!important;
        background: url(../img/bg_submenu.png) left bottom no-repeat, #f4bfd5;
    }
    

    Make sure that your image is of 25-30px height and for the remaining space you can give background-color.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working with wordpress and I have to display a menu based on
Does anyone have a working example of a Wordpress menu outputted manually? The one
Well, I'm working an an ul - li multilevel menu and have problem. Firstly,
I am working on navigation menus in a wordpress website. Please have a look
I'm working on drop down menus for this: http://www.heroicdreams.com/wordpress/elderFlashSite.html In every other browser it
I am working on a Wordpress-Design and i want to creat a Custom Menu.
I am working on wordpress and I have to add a metabox in case
I am working on a WordPress site and I have placed the following code
I'm working on a WordPress site that uses a dynamically generated menu system which
I'm working on a wordpress site, customizing the menu. I'm no php whiz, and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.