Questions tagged [position]

Position refers to the location of an element relative to its container, typically on the horizontal and vertical axes.

In computing, position closely relates to the geometrical definition of a position or position vector, also known as location vector or radius vector, which is a Euclidean vector that represents the position of a point P in space in relation to an arbitrary reference origin O. Usually denoted x, r or s, it corresponds to the displacement from O to P.

In simplified terms, position is used in reference to the location of a 'child' entity within a two-dimensional or three-dimensional space, the boundaries of which are referred to as the 'container' or 'parent'.

9210 questions
2
votes
2 answers

Background-Color not applying to relative objects, but will to absolute positioning

I have no idea how/why this is happening... But I've been re-building an interface from scratch since the old one was hacky and unreliable. Anyway, I have divs which are acting as "buttons." The gradient background I've got assigned to them wasn't…
Ethan
  • 787
  • 1
  • 8
  • 28
2
votes
2 answers

Update views after device rotating

I'm making an application which can be used in landscape and portrait. It's also possible to move some views in a scrollView (coordinates saved by NSUserdefault). but I noticed 2 big problems: 1) when I change the orientation of the iPhone, my…
Matt
  • 147
  • 1
  • 13
2
votes
1 answer

Position values as numbers

While editing website in Chrome develpoer tools I've recently found that over the margin, padding and border there is a position in which you can type a number. What does it do, and how could it be used ? Could I use it with position:10px; …
Giedrius
  • 603
  • 1
  • 6
  • 26
2
votes
1 answer

Fixed header position on scroll - If Else not working

Here's the pen... http://codepen.io/jareko999/pen/bZXbWP The 'if' portion of the jQuery works and adds the .fixed class to the #header when it's equal to or below 0, but it doesn't remove it when the headerTop is above 0, the 'else'. I can't figure…
Jarek Ostrowski
  • 139
  • 1
  • 10
2
votes
3 answers

How to find the position of an item of a list in python?

I have two lists. The first list has a specific length and the second list has unstable length. I want to assign the items from two lists. I use colour_index = sel_pos%(len(colours)). The sel_pos is the item's position from the unstable list. How to…
user6584717
2
votes
1 answer

Positioning SVG in front of div

Started playing around with SVG and am having trouble getting it to position the way i want to. What I want to achieve is for my SVG to come in front and locked to the bottom of the border-div and be centered on the page as well as resize when the…
N.Eod
  • 21
  • 1
  • 3
2
votes
1 answer

Jquery UI position plugin is not working with margin property

I am trying to position a box on the top right screen of my browser using the jquery ui position plugin as, $('.container').position({ my : 'right top', at : 'right top', of : 'body' }); This works properly and is getting displayed on…
user2879704
2
votes
1 answer

Adding text to a rectangle

Is it possible to add a piece of text in the centre of multiple rectangles in a D3 treemap chart? So what i'm after is something like this: As you can see by the picture, I want to have text appear once in the middle of each “section” (different…
user3837019
  • 211
  • 1
  • 2
  • 16
2
votes
2 answers

right side of fixed div overflow its parent

I am trying to put a position:fixed div inside an another div. I want a fixed div which has a width:100%; so it will be great for mobile and desktop at the same time. Here is my JSfiddle SF wants some code:
This…
user5670402
2
votes
5 answers

Get Position of Element in Javascript

I am trying to get the position of an element dropped onto the canvas using the following code. var x = $(".partitiondrop").position(); alert("Top position: " + x.top + "\nLeft position: " + x.left); The above works fine. I would like to know if I…
Nayantara Jeyaraj
  • 2,624
  • 7
  • 34
  • 63
2
votes
1 answer

I cannot open my menu when i scroll to the tables

Is there a way to move static positioned header? (like top:50px; in css) I need to move my static header from top for like 50px; Is there a way? P.S: I need to have static positioning, I cannot change that.
Fred007
  • 81
  • 1
  • 10
2
votes
1 answer

Display anchors/connectors on either side of an element

I am working with the jsPlumb library of JS where I drop elements onto a canvas and then try to connect them to each other at their endpoints/connectors. But for my query object I need the two anchors to appear on either side of the element( the…
Nayantara Jeyaraj
  • 2,624
  • 7
  • 34
  • 63
2
votes
0 answers

GearVRf position in sphere

I'm developing ad app withthe GearVR framework in which I must show a sphere and a series of interactive points on this sphere around the camera (a 360 photo with some points on the border). I could create the sphere witha a 360 photo and put the…
e_ori
  • 845
  • 1
  • 11
  • 29
2
votes
2 answers

Change position of an element and its parent in javascript

$player is at the center of the screen and can be moved at 360 following the mouse angle direction continuously, when I move it I also change the position of $map in the opposite direction, maintaining the player at center and creating a "moving"…
neoDev
  • 2,879
  • 3
  • 33
  • 66
2
votes
1 answer

Erlang: How to get current file cursor position

In Erlang, the file module allows one to move the file cursor to a given position by file:position/2. But after performing an operation such as file:read_line/1, the cursor now moves. Is there any way to get its current location? Sorry if this seems…
1 2 3
99
100