z-index

Scrolling body *underneath* a transparent header div?

孤街浪徒 提交于 2019-12-13 05:13:36
问题 I am trying to achieve a scrolling body with fixed header and fixed sidebar. I think I am almost there except that the body scrolls on top of the header. I wish I could simply increase the z-index of the header in relation to the body but this doesn't work since the header is mostly transparent. Here is the site: link Any ideas? Thanks Edit: I should clarify that I want the content to be invisible as it scrolls underneath the header, not simply as a layer beneath it. 回答1: Use the same

How to characterize z-indexing for the DOM? (2)

一世执手 提交于 2019-12-13 05:06:06
问题 I've been a bit care-less with choosing z-indexes in my CSS. I'd like to traverse the DOM and report all the z-indexes with their respective ID's. For example: id z-index header 10 main 0 menu 20 The end result would be an object whose keys are the element id and the value is the z-index. One might call it z_obj // pseudo code var z_obj = {el_id: el_zindex}; Getting the z-index for each element ( el ) should be easy using something like filter and the code below: // attr is attribute data = _

Allowing item selection indicator in ListBox to overlay all items in Silverlight

一个人想着一个人 提交于 2019-12-13 04:39:54
问题 I have a ListBox that uses a WrapPanel for its ItemsPanel , a custom ItemTemplate , and a custom ItemContainerStyle . The ItemContainerStyle's template contains a selection box that shows up when an item is selected. The graphics designer would like this selection box to overlap sibling items in the ListBox like it's an overlay. The first thing I tried was setting the Canvas.ZIndex property of the ItemContainer in the Selected state. That did not seem to have an effect. Then I read that list

as3 calling jQuery function

我们两清 提交于 2019-12-13 04:16:23
问题 I need flash to talk to jQuery. Here is my Flash code: if (ExternalInterface.available) { ExternalInterface.call('function(){ MyFunction(); }'); ExternalInterface.call('function(){ alert("Praise Be Jesus Christ!"); }'); } The "Alert" works great. My function does not. Here is my jQuery: <script type="text/javascript"> $(document).ready(function() { $("#flashContentABOVE").click(MyFunction); function MyFunction() { $("#flashContentABOVE").css("z-index", 4 ); } }); </script> 回答1: Put your

How to add 'if' to jQuery chain code

拥有回忆 提交于 2019-12-13 02:37:41
问题 I need to replace the 4th line in - this.menu = $("<ul>") .addClass("ui-autocomplete") .appendTo(this.document.find(this.options.appendTo || "body")[0]) .zIndex(this.element.zIndex() + 1) // !! <- here // !! .hide() .data("menu"); with the following code - if (XXX.style.setProperty) { // IE 9- does not support... XXX.style.setProperty ("z-index", (this???.element.zIndex() + 1), "important"); } How do I merge this code? what is 'XXX' in my case? what is "this" ? [relates to How to add

Ideas for table row outline on hover? CSS outline fails on tr in Webkit

谁说胖子不能爱 提交于 2019-12-13 02:04:36
问题 I'm trying to build a table (filled with actual tabular data), and get an outline effect for a row on hover. I've tried a couple ideas, but cross-browser issues are holding me back. Would love to hear any ideas. Idea #1 : Add CSS outline when hovering over <tr>. Works in IE8 & FF3, but not IE7 or Chrome (Webkit, so probably Safari too). The actual implementation of the hover is omitted for brevity: <table style="margin:10px;width:800px"> <tbody> <tr style="outline:red solid 3px"> <td>Test 1<

AngularJS - Slide Divs Up And Down With Z-Index Changes Isn't Being Respected

◇◆丶佛笑我妖孽 提交于 2019-12-13 00:56:17
问题 Please see the JSFiddle here which shows my issue: http://jsfiddle.net/mlippy/zkH7S/ I'm attempting to shuffle divs up and down a list with those divs moving up hiding the divs moving down. If you look at the fiddle, there are 5 different colored boxes that you can click to tell them to move to the top. If you click various boxes in various positions, you'll start to see the z-index of the boxes moving up not be higher than that of the boxes moving down. If you click the 3rd positioned box

Stacking multiple images with z-index

老子叫甜甜 提交于 2019-12-13 00:10:56
问题 I have two pairs of images that need to be displayed in a div. The images are each 280px wide by 200px high. I need the second pair to be displayed below (after) the first pair in the container div. Here is my code: <div> <div style="position:relative; z-index:1;"> <img alt="background 1" src="background1.png" width="280" /> </div> <div style="position:absolute; z-index:2;"> <img alt="overlay 1" src="overlay1.png" width="280" /> </div> <div style="position:relative; z-index:3;"> <img alt=

JavaScript pass mouseenter event to element that is underneath another element

 ̄綄美尐妖づ 提交于 2019-12-12 22:06:43
问题 I'm trying to build a little calendar app sort of like Google Calendar. I'm trying to create events with a click and drag functionality so that the events align to a grid. I'm trying to tie the dragging to TD elements below the event DIV element, which works when moving downwards (lengthening the event), but it doesn't work moving upwards (shrinking the event). What occurs is that the mouseenter event is fired for the event DIV element, but it is never fired for the underlying TD. If you try

Twitter Bootstrap Button dropdown z-index layering issue

我与影子孤独终老i 提交于 2019-12-12 22:02:14
问题 I've been pounding and pounding on this. I have a comment section on my site with an option to edit with a Twitter Bootstrap dropdown button, but I as you can see below, it's hidden by the following comments. I know it's not an overflow issue, as you can see the bottom of it under the last comment. So it can only be z-index layering issue. But I put all the comments on z-index: 4 and the dropdown on z-index: 1000 , so I have no idea what to do! Here is a jsFiddle: http://jsfiddle.net/ssL1yydx