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
0 answers

Is there a way of inserting after or before a looked-up array element in MongoDB, basically a workaround for not having $pushAfter and $pushBefore?

Imagine you have this structure: db.objecthierarchy.insertMany([ {_id : 0, children : [1,2,3]}, {_id : 1, children : [4,5]}, {_id : 2, children : [6]}, {_id : 3, children : []}, {_id : 4, children : [7]}, {_id : 5, …
Ian Fallon
  • 21
  • 2
2
votes
4 answers

HTML/CSS position absolute for parent and children

Convert the boxes into cocentric circles (circles within each other that share the same center). The outer circle should be black with a size of 300px and the inner circle should be white with a size of 200px. html:
stumped
  • 3,235
  • 7
  • 43
  • 76
2
votes
1 answer

Zooming Weirdness in SpriteKit

I am building an app using Swift and SpriteKit. The app loads an SKSpriteNode that is exactly the size of the screen and places it to exactly cover the screen. However, the user can move and zoom this SKSpriteNode as much as they like. I care…
zeeple
  • 5,509
  • 12
  • 43
  • 71
2
votes
1 answer

How to make vim quick fix window on the right side?

If I ":copen" it's by default at the bottom. If I ":botright copen" it's still at the bottom. How to make it on the right side of my source file window?
Hind Forsum
  • 9,717
  • 13
  • 63
  • 119
2
votes
1 answer

CSS: Display image with position:fixed but allow user zoom

I've created a page that scales large images to fit the window, however it does not allow the user to zoom once the image is loaded and scaled to fit. I want the initial view size to be as realized by the css as shown below, but thereafter I want…
Tom
  • 1,836
  • 4
  • 16
  • 30
2
votes
5 answers

jQuery bxSlider does not start at the right position

I cannot find out what I am doing wrong. So far, I have tested this only in Internet Explorer, so it could be that Firefox and Chrome aren't parsing the code properly. http://ontwikkelomgeving.wijzijnblits.nl/ginkelbemmelen/luuk/ My problem is that…
Luuk
  • 33
  • 1
  • 4
2
votes
1 answer

code name one text area cursor position shows in next line in i pad device?

I placed the text area in my application when i click on text area the cursor position is starting from next line in ipad device, after entered the string and click on done button it navigates to first line. please find the below code, String…
2
votes
1 answer

Why is my SpriteKitNode position not being displayed properly?

I'm new to SpriteKit and I'm following a tutorial that positions a SpritekitNode at the center near the bottom of the screen in portrait mode but regardless of the code I use, my object does not assume the position as discussed in the tutorial. I…
GIJoeCodes
  • 1,680
  • 1
  • 25
  • 28
2
votes
1 answer

CSS Float:clear is not working with relative position

Float:clear is not working with an element with relative position around it. I have tried putting the float element in a div, changing display type of parent element. It does not work the expected way. I am trying to avoid the overlap of child 2…
Taha Sk
  • 67
  • 1
  • 7
2
votes
0 answers

Getting the Position of a score while excluding the zero/empty values

I have two different codes for getting the position of a student's score in two subjects. From result columns 'maths' and 'english' containing the scores of different users. This is what the result for a user looks like Subject     Score  …
Charles Nwankwo
  • 31
  • 1
  • 1
  • 5
2
votes
1 answer

jQuery UI position()

I cant figure out how to position an element using jQuery ui position() for example: $("#element").position({ my: 'center top', at: 'center top', of: '.content' }); this works and element is position top center of…
Alko
  • 1,421
  • 5
  • 25
  • 51
2
votes
1 answer

CSS Z-Index not working on absolute positioning

I have the following situation: There are several div containers in my code. .outside { position: relative; z-index: 1; } .options { position: absolute; z-index: 999; }
Dennis
  • 595
  • 1
  • 6
  • 22
2
votes
2 answers

How to stack two divs vertically (and within another div) when the top div can change height?

I tried using position:absolute, but when the upper div expands, it overlaps the lower div. #twoDivWrapper { position:relative; } #topDiv { } #bottomDiv { position:absolute; margin-top:400px; margin-left:20px; } The above CSS…
user3402743
  • 553
  • 2
  • 8
  • 12
2
votes
1 answer

Find a number before another specific number on a vector

so I'm trying to know when an event happened before another event in matlab; by event I mean number. For example, I have a vector, let's say: x = [0.3 0.3 0.1 0.2 0.5 0.1 0.3 0.1 0.5 0.1 0.4 0.5] and I want to know in which position is the 0.1 that…
2
votes
1 answer

How to split string and add string positions of elements before the split?

Example: s=" 300 january 10 20 " mylist = s.split() mylist = ['300', 'january', '10', '20'] How can I create a list adding the string position of the elements before the splitting: mylistStringPos =…
Reman
  • 7,931
  • 11
  • 55
  • 97