[jQuery] Position div accounting for screen size/resize

2010-01-06 Thread kevinkace
Can you change a position of a div, based on screen size/resize with jquery? Something like if (browser= sitecontainerwidth) { left:50%; margin-left: 20px; } else { left: 0%; margin-left: 600px; } I have a centered layout (div{margin: top auto;}) with a BG image. There's another div (with a

Re: [jQuery] Position div accounting for screen size/resize

2010-01-06 Thread brian
Bind a handler for the resize event like so: $(window).bind('resize', function() { ...}); Have a look at this thread: http://groups.google.com/group/jquery-en/browse_thread/thread/4a00d513c63f5c00?pli=1 On Wed, Jan 6, 2010 at 11:08 AM, kevinkace kevinacame...@gmail.com wrote: Can you change a

Re: [jQuery] Position()

2009-12-14 Thread Karl Swedberg
On Dec 10, 2009, at 12:39 PM, Paulodemoc wrote: Hello guys, i started another thread about the FullCalendar plugin, and I've noticed what's happening. The css 'top' and 'left' properties from the css aren't being calculated properly... The functions to calculate that uses the 'position()'

[jQuery] Position()

2009-12-10 Thread Paulodemoc
Hello guys, i started another thread about the FullCalendar plugin, and I've noticed what's happening. The css 'top' and 'left' properties from the css aren't being calculated properly... The functions to calculate that uses the 'position()' function of jquery, but it is always returning 0, 1 or

[jQuery] position of js code

2009-09-21 Thread Theodoro
one doubts that where ever I put my js code inside the block head or out ... Does anybody know any good tutorial explanatory label it?

[jQuery] Position to use to have the Horizontal SuperFish at the top

2009-06-12 Thread nyliferocks
Hi, On my website www.mydabbler.info I wanted the superfish horizontal menu directly below the green banner at the top. I am using this to replace the top 2 menus in the middle. The current top 2 middle menus use User 1 on the middle left and User 2 for the middle right. If I use Superfish with

[jQuery] Position Div over Quicktime Movie

2009-03-24 Thread Nic Hubbard
Does anyone know of any jQuery/javascript trickery that can help with positioning a div over a quicktime movie? So far, I found found that it is not possible. But, it seems that there has to be some way to do this! Has anyone done this before?

[jQuery] position problem

2009-02-26 Thread merihsaka...@yahoo.com
Hi all, I have 2 different div which names are is insideParent and insideParent2 . And when I click the Add Element button the new div is creating inside the insideParent. the problem is when I create a new div , the second div's position is changing.. Its going down.. Also when I clicked the

[jQuery] position problem ( div is going up )

2009-02-26 Thread merihsaka...@yahoo.com
Hi all, I have 2 different div which names are is insideParent and insideParent2 . And when I click the Add Element button the new div is creating inside the insideParent. the problem is when I create a new div , the second div's position is changing.. Its going down.. Also when I clicked the

[jQuery] position of draggable div

2009-01-24 Thread merihsaka...@yahoo.com
Hi all, I want to ask How can I get the position (x,y) of draggable div. I am using jquery-1.2.6.js ui.draggable.js (jQuery UI Draggable 1.6rc4) ui.core.js (jQuery UI 1.6rc4) thank you

[jQuery] position of element

2008-11-13 Thread Espen AJ
I'm trying to get the position of all div-elements with a given class (point) with this code: $(.point).each( function() { var pos = this.position(); alert(pos.left) } ) This is the error I get on the var pos... line: Microsoft JScript runtime

[jQuery] position iframe elements in parent document?

2008-09-03 Thread AstroIvan
I haven't tried this, but I'm wondering if this is even possible. Dragging a div from an iframe to somewhere outside of it. TIA!

[jQuery] Position relative to image?

2008-08-26 Thread mei181
Sorry if this has come up (or braindead simple), I'm new to jQuery and searched extensively for an answer. Trying to build a light box-esque popup div that comes up to the right (or left, depending on the image's grid position) when you click on an image. Was trying to get the right position of

[jQuery] Position a hidden DIV under a menu item

2008-06-29 Thread [EMAIL PROTECTED]
Hello, I have an existing single-row table driven menu bar that I am looking to add a drop-down menu to. Below is the code I am trying to use. I have gone through many iterations but I seem to always get the same error: $('#appMenuDropDown').style has no properties Can someone please take a

[jQuery] Position Absolute div after some element

2008-01-24 Thread fshuja
i want to show a div (position absolute) . the problem is that i want to set its x same as some elements' x + width how can i do this.

[jQuery] position in selector

2007-09-12 Thread [EMAIL PROTECTED]
I have the following code $('a').click(function() { console.log('anchor'+ pos+' in page); }); I'd like to be able to get the matched position number (pos) of each element found, so if my page has 5 anchor tags, if i click on the first a element in the page, its pos would be 1 (or 0), etc.