Why does the dropdownlist show under the div
Tags: html,css,asp.net,drop-down-menu
Problem :
I have the following ASP.net code which is a popup window shown to the user:
<div id="popupContact">
<a id="popupContactClose" title="Close Window">x</a>
<h3>Add a New Message</h3>
<div id="dvFirst" class="mainSecond">
<div id="leftdiv3" class="leftdiv">Client: </div>
<div id="rightdiv3" class="rightdiv" style="z-index: 100;"><asp:DropDownList ID="ddlCliNewMsg" AutoPostBack="false" ClientIDMode="Static" runat="server" CssClass="chosen-select" ></asp:DropDownList></div>
</div>
<div id="dvSecond" class="mainSecond">
<div id="leftdiv4" class="leftdiv">Location: </div>
<div id="rightdiv4" class="rightdiv" style="z-index: 100;"><asp:DropDownList ID="ddlSitNewMsg" AutoPostBack="false" ClientIDMode="Static" runat="server" CssClass="chosen-select"></asp:DropDownList></div>
</div>
<div id="dvSixth" class="mainSecond">
<div id="leftdiv6" class="leftdiv">Specialty: </div>
<div id="rightdiv6" class="rightdiv" style="z-index: 100;"><asp:DropDownList ID="ddlPraNewMsg" AutoPostBack="false" ClientIDMode="Static" runat="server" CssClass="chosen-select"></asp:DropDownList></div>
</div>
<div id="dvThird" class="mainSecond">
<div id="leftdiv5" class="leftdiv">Provider: </div>
<div id="rightdiv5" class="rightdiv" style="z-index: 100;"><asp:DropDownList ID="ddlProNewMsg" AutoPostBack="false" ClientIDMode="Static" runat="server" CssClass="chosen-select"></asp:DropDownList></div>
</div>
<div id="dvFourth" class="mainFirst">
<div id="leftdiv1" class="leftdivspec"><sup style="color: #FF0000; font-weight: bold;">*</sup>Message: </div>
<div id="rightdiv1" class="rightdivspec"><asp:TextBox ID="tbMessage" ClientIDMode="Static" runat="server" TextMode="MultiLine" Columns="30" Rows="5"></asp:TextBox></div>
</div>
<div id="dvFifth" class="mainSecond">
<div id="leftdiv2" class="leftdiv">Active?</div>
<div id="rightdiv2" class="rightdiv"><asp:CheckBox ID="cbIsActive" ClientIDMode="Static" runat="server" /></div>
</div>
<div style="width: 96%; text-align: right; padding: 2%;">
<asp:UpdatePanel runat="server" ID="upSubmit" ClientIDMode="Static" UpdateMode="Conditional">
<ContentTemplate>
<asp:Button ID="btnSubmit" runat="server" Text="Submit" CssClass="btnSubmit" ClientIDMode="Static" UseSubmitBehavior="false" OnClick="SubmitAdminMessage" />
</ContentTemplate>
</asp:UpdatePanel>
</div>
</div>
The CSS:
.mainFirst
{
width: 95%;
margin: auto;
padding: 1%;
height: 90px;
border-bottom: 1px dotted #808080;
}
.mainSecond
{
width: 95%;
margin: auto;
padding: 1%;
height: 30px;
border-bottom: 1px dotted #808080;
overflow: hidden;
}
.leftdiv
{
width: 35%;
height: 30px;
float: left;
font-weight: bold;
}
.rightdiv
{
width: 65%;
height: 30px;
float: left;
}
Originally when the popup window loads, it is displayed like this:
Whenever I select something from the dropdownlist, it goes under the DIV below it:
How can I modify the CSS so that each DropDownList will appear outside of the container so it will display the options?
Solution :
you can try to add " overflow: visible " to the container class
CSS Howto..
You can use element div inside the paragraph. The div should have a width or a left-margin It can looks like this http://jsfiddle.net/wmqFL/3/. If you want you can creae the...
Add here .menu ul li:hover{ background-color: #005ea2; } a position: relative;. This will establish a containing block in order to be able to position stuff relative to it. After that...
For achieving hover effect over whole element, you can use CSS combinator: .portfolio-item:hover > .portfolio-info { margin-top: 0; text-decoration: none; } instead of .portfolio-info:hover { margin-top: 0; text-decoration: none; }...
This is pretty simple in CSS after you've changed your HTML a bit. Your current structure is a little like this: paragraph containing images first image second image third image...
Remove the text-align:center; from the #wrapper CSS class and provide a width of 100% to it. So, essentially your wrapper class should look as follows: #wrapper{ width:100%; } See this...
You can use Conditional Comments in CSS like this <!--[if IE]> <link href="Styles/IEstylesheet.css" rel="stylesheet" type="text/css" /> <![endif]--> ...
You can request the existing .css file using XMLHttpRequest() or fetch() instead of loading the file at html, append the new style rule to the .css file at XMLHttpRequest.responseText or...
I can not test it, but this would be worth a try. I assume that <input type="image" /> is beeing treaded like an <img> by your browser. To prevent this,...
@Hansal, I don't think the background property accepts videos as valid urls. They can only take bitmaps, SVG images, colors and gradients as values – it is possible to fake...
There is a certain technique abusing CSS transitions and listening for the transitionend event. There are only a very few cases where it's really required (like if you want to...
For the positioning I removed the .background-bubble margin-bottom:-17% and instead added top:-100px to .foreground-bubble since its position:relative. I also gave the wrapping div a new class "bubbles" and added margin-top:50px...
You need to set the image as a background image in the parent div. Then a properly measured div inside that is absolutely positioned can be your scrollable content. <div...
Wow, going back to basics after using a framework is hard work. var element = document.getElementById('BottomCell').previousSibling; var parent = element.parentNode; parent.removeChild(element); ...
On the off chance this is what you're looking for, it can be done with jquery: https://jsfiddle.net/z896hdhL/2/ The fiddle above contains runnable code to see what this example would do....
All these tables are making me feel sick :) This might not be the answer you're looking for, but it looks to me like the code is generated server-side, i.e....
Put this line of code in your <head> (above the rest of your JavaScript) <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> Or if the code is not compatible with 2.1.3, you can use this one...
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0002b0fd', endColorstr='#028dca',GradientType=0 ); will give you IE6-9. Using: http://www.colorzilla.com/gradient-editor/ ...
Try this solution (jsfiddle.net/gustavocorrea/3mSjy/1/ broken). I added a class in your first "li" called active and I applied some rules CSS.
You can try: $('.dropdown-menu').css({ 'right':'auto', 'left': '0' }); Set the default value for right rule and the one you want for left...
Change your nested list structure. Move the closing li tag of the item News after the sub ul list like below. <li><a href="#news">News</a></li> Change this to below <li><a href="#news">News</a> <ul>...
The issue is with the float of the boxes and the display status Try this, it should work fine.. http://jsfiddle.net/4sdvk8gL/ *{ margin:0px; padding:0px; } h1{ font:bold 20px Tahoma; } h2{...
You have a wrong sequence in link function Instead of link: function(element, scope) { Change it to link: function(scope, element, attrs) { Then you can directly do element.addClass as jQLite...
In this case, you'll want to animate the left and top properties. The unfortunate piece of this is that you'll need to have one class/selector for each item you're planning...
Simply add white-space:nowrap #carousel { width: 100%; height: 150px; background-color: #ff0000; overflow: visible; white-space:nowrap; } #carousel .slide { display: inline-block; } <div id="carousel"> <div class="slide"> <img src="http://placehold.it/300x150"/> </div> <div class="slide">...
This seems like more of a photoshop-chopping question than anything. Here's how I would approach, assuming that your markup is structured as follows: <nav> <ul> <li class="icon-a"> <a> <span class="icon"></span>...
You should be able to set the top and bottom values of the aside. Something like: aside { position: relative; float:left; width:170px; top: 0px; bottom: 0px; } ...
It has to do with the time set for your animation. When i changed the time to 114s it cycled throught all images. If you need to make it faster...
For others having same question: It can be done by using stringByEvaluatingJavaScriptFromString: method of UIWebView (upon webViewDidFinishLoad) -(void)webViewDidFinishLoad:(UIWebView *)webView { [webView stringByEvaluatingJavaScriptFromString:@"document.getElementById('topBarBody').remove();"]; } ...
CSS will handle this fine if it knows that the language is Greek. Merely specifying Greek characters does not tell CSS that the language is Greek; that requires the lang...
You cannot load an uncompiled CSS file into your Flex application at run time. You must compile it into a SWF file before loading it. - Adobe Flex 3...