positioning

How might I use jQuery to position one div dynamically below another?

I'm trying to use jQuery to detect the position of a div (#olddiv), so I can use that position to place another div (#newdiv) exactly below it. The right borders of the 2 divs are aligned (right border). I'm trying to get the #olddiv bottom and right locations to use them as the #newdiv top and right borders. I've used this code, but i...

Centering Windows on screen

Short and sweet: How can I tell Interface Builder to center a window on a user's screen? I've seen the positioning tool on the inspector, but eyeballing doesn't always land as squarely as I like. Is this something where I should switch over to Xcode and add something to the init or awakeFromNib methods? ...

Manipulating a <div>'s position through JavaScript

How do I set the top, left, width and height of a <div>? I already made sure it floats by inserting the following CSS code: div.grid_tooltip { position: absolute; left: 0px; top: 0px; } ...

YouTube video loaded into Flash MovieClip, can I get width and height?

Hello, I'm trying to load a YouTube video on a flash MovieClip using url http://www.youtube.com/v/4nRNoXT%5FgUc that returns the video with player directly. the video is loaded and i can manage it with his player, the problem is when i try to position it no the stage, because I don't know his width until it starts. I've tested it with ...

How to update pixelPosition of a custom infoWindows on Google Maps V3 after dragging?

I'm creating a new mashup on top of Google Maps. It's simple enough that I chose to use V3 to provide longer life span. However, there's some special needs that Google Maps infoWindow doesn't provide. I've positioned my custom infoWindow with marker.projectionContainer.pixelPosition. I get correct position after zooming, but dragging d...

How to make the drop down list in header frame overlap body frame?

I have a header frame, and a body content frame. My header frame by default is to put logo and logout button. My body frame is to put all the contents. Issue now is: I decided to add in a drop down menu at header frame. When scroll over, it will drop down a long list. But, when scroll over, it drop down inside the header frame itse...

Bind a value to a control's absolute position in XAML

Is there a way to bind a value to the absolute position of a control using XAML? I have a Line element that I would like to be drawn between two Buttons in my application. I was thinking that binding the starting point of the Line to the position of the Button would be the easiest way to make this happen, using RelativeSource somehow. ...

Positioning a Tooltip

Hello guys, I'm trying to make my tooltips pop up in the left side of the cursor instead of the right side, with a jquery plugin called EasyTooltip. I'm trying to give a negative value in the header's call, which aim would be to affect the x-axis positioning, but with no effects (nothing appears, while a positive value in both axis shal...

Qt QMenu position

Hi, I would like to have a QMenu above a QToolButton, without rewritting a custom widget playing with relative/absolute size and positions (meaning without coding :)). Does anyone know if it is possible using styles or properties? I didn't see anything like in the documentation. Thanks, Boris ...

CSS Position Divs Horizontally in Reversed Order

I have a document that looks like <div id="content"> <p> blah </p> </div> <div id="menu"> <p> blah2 </p> </div> <div id="footer"> <p> Copyright </p> </div> The content div is after the menu div, but is it possible to have the layout displayed like so: ------------------- | Menu | Content | | | | | | ...

Positioning adorner relative to parent's dimensions in WPF

Hi, I am trying to position an Adorner depending on the dimensions of the parent of the adorned element. For example, I have a textbox. I want to adorn this textbox so it looks something like this: A textbox is placed in a canvas object and if there is enough space available then place the adorner (semi transparent rounded square) i...

Weird CSS Sidebar Issue

Here is the site in question I've got the sidebar working on any other page of the site except for this one; all of the pages have the same template. The sidebar right now is doing the old "go under the content". When I try and edit its positioning in Firebug to anything but relative and then change it back to relative, it snaps back i...

JScrollPane setViewPosition After "Zoom"

The code that I have here is using a MouseAdapter to listen for the user to "draw" a box around the area of an image that they would like to zoom in on and calculate the ratio of the box to the image. It then resizes the image to the calculated ratio. This part works. The issue that I am having is making the JScrollPane view appear as i...

Problems with javascript/php image positioning system

Hi everyone! I am working on a project which involves moving products around a virtual living room, I have the following function <a href="javascript:void(0)" onclick="sendxandy( <? echo $_SESSION['numberOfProducts']; ?> )">Save Positions of Products</a> and then the function is as follows: ` function sendxandy(productAmount) { ...

How to display a message window in the right bottom corner of the active display using Delphi

These days you see a lot of software displaying message windows in the right bottom corner of the active screen for a few seconds or until a close button is clicked (f.i. Norton does this after it has checked a download). I would like to do this using Delphi 7 (and if possible Delphi 2010, since I am slowly migrating my code to the late...

Absolute positioning. Need help displaying 3 images instead of 1

</div> <div style="position:absolute;top:160px;left:535px;"><img src="splash.png"></div> <div style="position:absolute;top:160px;left:535px;"><img src="splash2.png"></div> <div style="position:absolute;top:160px;left:535px;"><img src="splash3.png"></div> <!-- Press Logos --> <div align="center"> how can i get all three splash imag...

How to make a HTML list appear horizontally instead of vertically using CSS only?

I need this because I want to make a menu (which is made from a HTML list) appear horizontally. *I prefer not to use absolute positioning since it might become messy when I start changing the layout of the page. Edition 01 I would like also to remove the indenting of the sub-lists, is it possible? ...

Getting unordered list in front of image slide-show in IE8, IE7 and probably IE6...

I have a simple (absolutely positioned) image slide-show that consists of a few images that rotate every few seconds. To have different areas of the changing image click-able, I also have an unordered list containing the different links, relatively positioned in order to use z-index. This works just fine in Firefox (3.6), Safari (windo...

position a fixed element relative to a containing element

Here is what I got so far. This effect is exactly what I want, except the position is obviously off. CSS: #rightDiv{ position: absolute; top: 200px; margin-left: 530px; } #membership{ text-align: center; height: 400px; z-index: 5; width: 329px; position: absolute; top: 190px; } #membership...

How to control VS window positons and state from a macro

Hi, this may seem like a trivial question but i am wanting to set up some hotkeys in Visual Studio to control the window layout. For example, F10 would collapse all windows (such as the command from the windows main menu called - Auto Hide All) and then F11 which would dock and position certain windows of my choice at certain positions....