position

CSS position change/problem

I have just finish that site, but there is a silly bug that remain... if you check tu horizontal position of the WHOLE page there is a slight shift... nothing to cry about but WHY here is the 2 pages http://jlecologia.com/index.php http://jlecologia.com/entreprise.php any idea, the horizontal css is: #wrapper { position:relativ...

align text center with css

I've got question related to center the page using div#container Typically the container code is like this: div#container { margin-left: auto; margin-right: auto; width: 50em; } The container div tag wrap the part of the code that I would like to align center inside it. For example we have 2 object A and object B _object A is positio...

How to position many DIVs in CSS

I have gone through a long tutorial on W3Schooles to learn CSS; I learnt some basics but still miss my primary aim: Positioning DIVs This is what I'm trying to do *---------*---------* * * * * * * *---------*---------* My goal is simple and trivial for some, but I'm having headaches doing this the righ...

Loading jQuery Dialog changes Browser viewport Focus

I am loading a jQuery UI window a few scrolls down from the top of the page. When it opens the Browser resets it's position to the top of the page. If it helps just prior to the dialog loading I am inserting some HTML into the page (html for the dialog). Does anyone know how to stop this? Edit The answer on the question guessed what...

UIWebView rotation and position

Hello, I use a UIWebView displaying a PDF file. By default the PDF is displayed in portait mode but the user can rotate the iPhone. The rotation work well, but after being in landscape, the PDF position is not the same as in portrait. Whe I switch back to portrait mode, the scroll is at the "old" position in the PDF. My controller send...

IE 6 vs. position:fixed

Hello. position:fixed that doesn't work for Internet explorer 6. I can't really understand the fixes found on google. I need it to work in IE6, IE7, IE8 & FireFox 3.0. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml" l...

WPF position and dimensions wrong

Hey I'm currently using a semi-transparent WPF form with no border as a camera style device in a program of mine. However, when I access the position (top, left) and dimension (height, width) properties of the form, it would appear they are wrong. The top property reported to be roughly 26 pixels higher than it actually is in relation...

jQuery - Animate element that has children absolutely positioned outside it - blinking

Hi there, Forgive me if this has been addressed before, couldn't find anything. I am animating a content bar that that has children absolutely positioned outside it (via negative margins). The idea is that the children will animate with the bar as it expands. What happens is as soon as the animation starts the children disappear, and...

back button scroll position

After I submit a form the position will return to the top of the window. Instead of going to the previous position. Looking at using scrolltop to rememeber the positon or do you have a better idea? I'm using stuff like PHP5, jQuery and MySQL. ...

Why does some jquery code only work if it's at the end of my html-body section?

I have the following code for creating tabs. It works at the end of the html body section but not if I place it at the beginning - before all of the divs are defined. Why might that be? <script type="text/javascript"> $("ul.tabs li.label").hide(); $("#tab-set > div").hide(); $("#tab-set > div").eq(0).show(); $("ul.tabs a")...

What is the best practice for form and dialog placement on single and multi-monitor systems?

I'm having a sort out of my (Delphi) applications and I been visiting the floating form size and location persistence which seems to be increasingly important with larger screen real-estate and multi-monitors. Clearly it is often desireable to have a user's form reopen in the same place as they closed it, but maybe not always, for exampl...

AJAX Autocomplete appears at a random vertical position, not touching the textbox

Hi, I am using the AJAX Autocomplete extender for ASP.NET 2. Everything works fine...I am calling a webservice which gets me the values to fill the drop down with after 3 letters are typed into certain es. I have set the maxheight attribute and am using a scrollbar in case there are more entries than would fit that height. However, I no...

Cocoa: Getting the current mouse position on the screen

I need to get the mouse position on the screen on a Mac using Xcode. I have some code that supposedly does that but i always returns x and y as 0: void queryPointer() { NSPoint mouseLoc; mouseLoc = [NSEvent mouseLocation]; //get current mouse position NSLog(@"Mouse location:"); NSLog(@"x = %d", mouseLoc.x); NSLog...

Mouse position using jQuery outside of events

I need to get a hold of the absolute mouse position / coordinates (X and Y) using (preferably) jQuery like in this tutorial but outside of any JavaScript event. Thank you. ...

jquery recognize in which row iam

i have a table with thousands of rows. there are no ids and so on. within the tds of the rows i have a link calling a fucntion and passing "this" to get the link object. using jquery it is easy to get the the closest tr and table (and so the tables.rows.length) i want to know as easy in wich row i'am?! ok i could do a loop but does e...

Stop video at specific position using windows media player SDK

Is there a way to stop a video at a particular position using Windows Media Player SDK? I am using C# for embedding the player and trying to see if the IWMPControls3 Interface has any stopping capability at a particular point in terms of position or time. If it can be done, then how to do it? ...

Getting the portlet position

Following on from : http://stackoverflow.com/questions/1034360/how-to-save-portlet-positions I'd like to know how to get the new position of the portlet in the first place. ...

CSS Position Relative

Hi! I am trying to position some text relative to the prior element. So i have 4 boxes and 1 container, the first and second element works, but then the problem starts. It is supposed to be 2 rows with 2 boxes on each row. Box1 | Box2 Box3 | Box4 But the Box3 isn't showing as it is supposed to. http://homeweb.mah.se/~M09K0291/test.ht...

Browser does not remember position of page last viewed

Hello everybody, I have done a few searches for this issue and I have come up empty handed. I hope somebody can clarify things for me and point me in the right direction. Problem: I have a page that displays a list of results after submitting a search form. When a user clicks on one of the results, the browser goes to a new page showin...

How do I calculate an elements position in a scrolled div?

I have a div with absolute positioning set to allow vertical scrolling. My app includes drag & drop facilities that rely on me determining the coordinates of elements when events are fired. The offsets I use to calculate elements positions (i.e. element.offsetLeft & element.offsetTop) only relate to original position of the element and ...