position

Anchor HTML DIV tag to right of screen

Hello, I have a site that has 2 DIV tags, one floats left the other floats right. The left DIV contains text for the page, the other DIV is used to display a video. When I have text in the left DIV that fits the entire width of the screen the video shows up where I want it. However, a few pages have very little text and cause the video...

jQuery offset combined with jQuery UI doesn't update on drag

I need to get the offset of the element that is being dragged and I use: $(function(){ $(".draggable").draggable({ stop: function(){ var offset = $("#boxone").offset(); alert(offset.left); } }); }); the element is positioned absolute and has a CSS of: left:100px; that is the value ...

Layout Bug in IE (div relative)

Hi, I have a problem with IE (all versions). I have a header div with a relative position and inside this another div with absolute position and right alignment. <div id="header" style="position: relative; width: 1000px; height: 60px;"> content http://stadtwerke-bitburg.de/fileadmin/overflow_prob_IE.png Now when I open the pulld...

How to find out the "True" x ,y values of a view

Hi If I have a view inside another view, than its x,y values are relevant to its parent view. I would like to know its x y position relative to the whole screen window- that means 320 X 480 iphone screen window The top left corner is 0,0 of course. What is the way for getting its "True" x ,y values? Thanks. ...

Find text position

Hi. Could you please help me !!!! For example, I load some page into opera/Firefox etc., there is a text on the page (which is a link). What I need is to find position of the text on the screen and send mouse click to that position. Is it possible to do? If you can, give an example please!!!! ...

HTML Position DIV Tag to the absolute TOP

.myDiv { background-image: url(urltomyimgheader); height:100px; margin: auto; position:relative; top:-10px; width:600px; } This is a simple div tag used to display the logo... I have made the top -10px to make it touch the top of the browser where unless there is a gap between the logo and the page. However i feel bad about us...

Drag and drop objects onto a DIV.. relative vs absolute position and size of target DIV

Hi, I have a question about drag and drop and hoping one of you already solved it. I have an online web app where I can drag and drop annotations (arrows, stars) on top of an image that sits on a DIV. Here's some things to know. 1) The image can be any size (sometimes big sometimes small) 2) The DIV of wrapper can be left aligned or cen...

C# - Moving a control to the mouse's position

Hello everybody. I am trying to get a control to follow the cursor when the user clicks and drag the control. The problem is that 1.) the control doesn't go to the mouse's position, and 2.) the control flickers and flies all over the place. I've tried a few different methods of doing this, but all so far have failed. I've tried: protec...

How to know the position of the Silverlight ChildWindow when you close it

Please, help me. public myChildWindow() { InitializeComponent(); // set left and top from saved values Margin = new Thickness(70, 50, 0, 0); } private void ChildWindow_Closed(object sender, EventArgs e) { // How to know the position of the ChildWindow when you close it ? // get left and top for save values ... ...

jquery treeview global saving position

i use such treeview http://docs.jquery.com/Plugins/Treeview/treeview, it saves perfect opened nodes when i click to subnodes links, but if i click on link, that is not in treeview the treeview is closes. for example- in treeview i have product categories, when click on category it loads list of products, but if i click on product details...

SSRS: Report label position dynamic

I have a report which displays customer address in multiple labels. My customers use windowed envelopes for mailing. I need the address labels position to be configurable. Something like, I'll have a database table which stores the Top/Left position of each label per customer. Based on this table, I need to position the address labels ...

Why doesn't Perl's XML::LibXML module (specifically XPathContext) evaluate positions?

I have an XML representation of a document that has the form: <response> <paragraph> <sentence id="1">Hey</sentence> <sentence id="2">Hello</sentence> </paragraph> </response> I'm trying to use XML::LibXML to parse a document and get the position of the sentences. my $root_node = XML::LibXML->load_xml( ... )->documentElem...

WinForms button position - not aligned as it should

Adding some gui modifications and I want to have a button which is 10pixels away from the forms left and right border. With this code the right border of the button is around 20-30 pixel outside the form window. Why is that? How can I position my button to be exactly 10pixels away from the form borders ? int margin = 10; meny1 = new Bu...

Android TextView's Background Not Moving When TextView.Padding Changes

I have a TextView that I created in the main.xml. In my app.java I am dynamically positioning that TextView based on where the user taps the screen. The problem I am having is that when I call myTextView.setPadding(100,100,0,0), it moves the actual Text of the TextView, but does not move the Colored Background of the TextView. Ideas? ...

Make HTML content area fit to viewport height?

I just made this demo extracting out what I'm trying to accomplish: Autosize Main Content Area I want the pink/yellow area to act according to these rules: Minimum height is the size of its content (which is variable) IF content size is smaller than viewport size Otherwise minimum height is such that it adjusts to fill the window...

WPF Separator position

Hey, I'm using a Separator to draw a vertical line inside a Border. At first this was ok because the line needed to be centered, but now I need to position it at a custom x-position from the left border. Is there a way to do that? <Border x:Name="border" ClipToBounds="True" Background="White" BorderBrush="Black" BorderThickness="2"> ...

How to make a SurfaceView always horizontal?

Hello there... I'm using SurfaceView to draw some stuff using canvas. The problem is that I want to show everything horizontally by default and keep it that way regardless the position of the device. I'm not using any layout XML file to show the SurfaceView; instead I just have a class that extends SurfaceView and I do setContentView(ne...

How can I get the x/y coordinates of an SVG element(path etc) that does not have the X/Y attributes?

Hi! I am trying to get the position of SVG elements using Javascript. I have managed to get the position on elements that have X/Y attribute set. But elements, such as paths does not have this attribute.. At least not in my docuements. Is there a way to calculate the position other than taking the first number in the "path"? Thank you...

Window scrolling up when jquery dialog opens up

I am trying to open a modal jquery dialog using jquery 1.4 and jquery-ui-1.8rc3.custom.js The dialog opens up with no issues, in all browsers, but in IE 7 and 6, after the dialog opens up, the window scrolls itself to the buttom... I tried scrolling the window up back to the modal position but is very inconsistent. was using the followi...

Android Web App : Position:fixed broken?

Hi all, I'm in the process of developping a Web Application for mobiles. I went with web applications because to me it seems a winning situation having to develop one application that could run also on iPhone / Windows Mobile / Palm etc. I started testing today after a few days of doing concepts, ideas and designs and what I wanted to ...