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 6794057
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:10:33+00:00 2026-05-26T18:10:33+00:00

Markup: <div id=topMenu <ul class=topnav> <li class=misReservas><a title= href=# class=misReservas><span>MIS RESERVAS</span></a></li> <li class=misOfertas><a title=

  • 0

Markup:

<div id="topMenu"
    <ul class="topnav">
                            <li class="misReservas"><a title="" href="#" class="misReservas"><span>MIS RESERVAS</span></a></li>
                            <li class="misOfertas"><a title="" href="#" class="misOfertas"><span>MIS OFERTAS</span></a></li>
                            <li class="miCuenta"> <a title="" href="#" class="miCuenta" id="miCuenta"><span>MI CUENTA</span></a>
                                <ul class="subnav submenuMiCuenta" style="display: none;">
                                    <li class="first"><a href="#" title=""><span>MIS PUNTOS</span></a></li>
                                    <li class="last"><a href="#" title=""><span>MI PERFIL</span></a></li>
                                </ul>
                            </li>
                            <li class="misVentajas"> <a title="" href="#" class="misVentajas"><span>MIS VENTAJAS</span></a></li>
                            <li class="nuestrosHoteles"><a title="" href="#" class="nuestrosHoteles"><span>NUESTROS HOTELES</span></a></li>
                            <li class="nuestrosPartners"> <a title="" href="#" class="nuestrosPartners" id="nuestrosPartners"><span>NUESTROS PARTNERS</span></a> </li>
                        </ul>
</div>

Relevant CSS for #topmenu:

    #topmenu ul{
    list-style: none;
    display:block;
}
#topmenu li{float:left;height:50px;}
#topmenu li a{
    margin:0;
    padding:0;
    text-decoration:none;
    text-indent:0;
    background:none !important;
    width:auto;
    padding-bottom:5px;
}
#topmenu li a span{
    color: #EEEEFF !important;
    cursor: pointer;
    float: left;
    font-family: 'Cabin',Arial;
    font-size: 14px;
    height: 24px;
    letter-spacing: 0.2px;
    text-align: center;
    text-decoration: none;
    margin-top: 9px;
    padding: 15px 16px 5px 16px;
    display:inline-block;
    background:none;
}

CSS for .subNav

#topmenu li ul.subnav {
    display: none;
    left: 0px !important;
    position: absolute !important;
    top: 50px !important;
    z-index: 1000 !important;
    width: 98.9% !important;
}
#topmenu li ul.subnav li{
    clear: both;
    display: inline;
    float: left;
    height:33px;
    margin:0px;padding:0px;
    width: 100%;
}

#topmenu li ul.subnav li a  {
    margin:0;
    padding: 0;
    float:left;
    height:33px;
    display:inline-block;
    width:100%;
    background: url("../nImg/spriteMas.png") no-repeat scroll right -430px transparent !important;
    _background:#65ABE7;
}

The probles is that making use fo position:absolute;left:0px; the position is not the one i expect: I expect it to be positioned acording .miCuenta offset and to respect it’s size, but something like this is what i get:

enter image description here

Any idea what i am doing wrong? i didn’t specify any width in px or anything i think it should be afecting…

  • 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-05-26T18:10:34+00:00Added an answer on May 26, 2026 at 6:10 pm

    When ever to give position:absolute to an element then define position:relative to it’s parent.

    In your question you define position:absolute to #topmenu li ul.subnav so you have define position:relative to it’s parent #topmenu li

    write like this:

    #topmenu li{
    position:relative;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Having markup like this: <div class=foo> <div><span class=a1></span><a href=...>...</a></div> <div><span class=a2></span><a href=...>...</a></div> <div><span class=a1></span>some
With markup like this: <div id='titlebar'> <a><img src='foo.png'></a> <span>Title</span> </div> is it possible to
The Markup: <div class=day> <span>1</span> <div class=icon-shop icon-blank><p class=event-details id=shop-1></p></div> <div class=icon-eat icon-blank><p class=event-details
My markup looks like: <div class=c1> <li class=c2><a href=>blah</a></li> </div> I want the text
here is my markup: <div> <h3>Title</h3> <ul class=eventslist> <li>This event would be discarded</li> <ul>
I have this markup: <div class=news-listItem> <p class=date>Date: 06.03.2012</p> <h2><a href=#>test aaaaa</a></h2> <div class=news-content>Lorem
With the following markup: <div class=paymentOption> <input type=radio name=paymentOption value=1 /> <span class=marginLeft10>1-time payment
With this markup: <div id=shopNav> <ul> <li class=active> <a href=#>test 1</a></li> </ul> </div> <ul>
Markup <div> <label class=form-label-medium>Full Notice Text</label> <span id=FullNoticeText> Lorem ipsum dolor sit amet, consectetur
I have the following html markup: <div id=com_loaded> <div id=com_loaded_userpic><a href=# class=tooltip><img src=pic.jpg class=img_poster

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.