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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:50:49+00:00 2026-05-31T15:50:49+00:00

I used Jquery to create a dropdown list, and some reason I can see

  • 0

I used Jquery to create a dropdown list, and some reason I can see the other form elements over the list. It’s almost as if it is between the background, and the text/form elements. Here’s a photo for reference:

enter image description here

I’ve tried changing the z-index, but nothing happened. If i make it position:absolute or fixed, it will solve the transparency problem, however if the window size changes, then the position of the dropdown list also changes…

Here’s the html code:

<form action="<?php echo htmlentities($_SERVER['PHP_SELF']); ?>" method="post">
<label class="introl" for="location">Location </label><input id="locality" class="intro" type="text" name="location" size="40" value="Country, City" /> <br /> <br />
<label class="introl" for="gender">Gender</label><div class="gender"><span class="male"><input type="radio" name="gender" value="M" />male</span><input type="radio" name="gender" value="F" /> female</div> <br />
<label class="birthday" for="birthday">Date of Birth</label>
<? echo dateOfBirth("","","");?><br />
<input class="submit_intro" type="submit" name="submit_intro" value="Submit" />
 </form>
          <table>
                <tr>
                   <td>
                      <div class="dropdown1"></div>
                   </td>
                </tr>
          </table>

(The list appears in the div#dropdown1)

And here’s the css for the dropdown1

.dropdown1{
margin-top: -253px;
margin-left:183px;
font-family: "Arial Narrow", Arial, Gadget, sans-serif;
width: 372px;
background:#FFF;}

I need the list’s background to cover the other form elements (radio buttons, lists, etc.) as well as preventing it’s position to change if the size of the window changes. Thanks!

EDIT: Here’s the css for the others:

label.introl
 {
width: 6em;
float: left;
text-align: right;
display: block;
font-family: "Arial Narrow", Arial, Gadget, sans-serif;
font-stretch: condensed;
font-size: 24px;
color: #8a8a8a;
margin-left: 25px;
 }

.birthday
 {
width: 6em;
float: left;
text-align: right;
display: block;
font-family: "Arial Narrow", Arial, Gadget, sans-serif;
font-stretch: condensed;
font-size: 24px;
color: #8a8a8a;
margin-left: 25px;
margin-top: 3px;
      }

 .list1{
margin:0px;
padding:0px;
width : 373px;
list-style-type: none;
border: 1px solid #e2e3ea;
border-top: 0px;
margin: 0;
margin-top: -11px;
      }

 .list1 li{
list-style : none;
width : 373px;
border-right: 1px solid #e2e3ea;
text-align:left;
font-size:24px;
     }

 .list1 a{
display : block;
color:black;
text-decoration : none;
padding : 5px;
padding-left: 1px;
cursor : pointer;
      }

   .selected1{
background: #F6F6F6;
border : none;
color: white;
      }

  .selected1 a{
color : black;
      }

   #loading1{
visibility:hidden;
padding-left:5px;
     }

  .ajax_response1{
position:absolute;
top:auto;
     }

  .matched1{
font-weight:bold;
color: #000000;
background : #D8D8D8;
     }

   .ajax_response1{
border-color : #CCCCCC;
border-style:solid;
border-width : 0px 1px 0px 1px;
background : #E0E0E0;
display:none;
/*padding:2px 2px;*/
position : absolute;
overflow: hidden;
z-index:9999;
       }

  .highlighted1{
font-weight : bold;
       }
  • 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-31T15:50:50+00:00Added an answer on May 31, 2026 at 3:50 pm

    Ok it was becuse of the margins you were using change your css to:

    .dropdown1 {
        background: none repeat scroll 0 0 #FFFFFF;
        font-family: "Arial Narrow",Arial,Gadget,sans-serif;
        left: 183px;
        position: relative;
        top: -245px;
        width: 372px;
        z-index: 99999;
    }
    

    I.e. use relative positioning instead of margins and it’ll work, does on firefox anyhow…

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

Sidebar

Related Questions

I'm trying to create a JQuery Dropdown similar to the one used in bootstrap.
I'm using jQuery to create a simple, but large dropdown menu. I have some
I have used the jQuery Qtip plugin to create some tooltips using the following
I used jQuery to set hover callbacks for elements on my page. I'm now
Has anyone used jQuery to populate an autocomplete list on a textbox using ASP.NET
I used jQuery tools to create a tabs setup, and I would like to
Has anyone used jquery to take data from one form field and put it
I have used the s3Slider jquery plugin to create nice banner animations in both
I'm using ASP.NET 4 to create a page with elements that are used in
I'm using jQuery Mobile to create a mobile (obviously) website. I have a list

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.