Questions tagged [position]
Position refers to the location of an element relative to its container, typically on the horizontal and vertical axes.
position
9,251
questions
-1
votes
1
answer
35
views
Using REM unit to secure its same position on the screen when font-size changes?
I'm trying to understand the behavior of REM units when used for element positioning. While pixels (px) maintain a fixed position regardless of font size, using REM seems to always lock the element's ...
0
votes
2
answers
32
views
Is it possible to mix absolute and sticky positioning?
In this example the inner grey div should be behaving like a sticky div - so it sticks to the top of the screen when you scroll down the page - but that ain't happening! What have I got wrong?
<...
0
votes
0
answers
40
views
A h2 title overlaps with the text under it when the h2 title wrap
How it looks when title isn't wrapping(all good)
When the screen is thinner and the title wraps
As you can see it clashes with the h3 title ("S2")
I am quite new to coding, currently ...
0
votes
0
answers
47
views
Setting the position in SwiftUI scrollView using AnchorPoint and coordinates
Reading great tutorials (that use PreferenceKey), I'm able to follow the scrolling in my SwiftUI ScrollView.
For example, in a ScrollView with:
y content size of 5000 pt
scroll view height of 675 pt
=...
-1
votes
3
answers
98
views
delete the characters of a filename from a specific position
i have 100 files in a folder with filenames as below
Example1: GCA_000696115.1_SoWt_assembly_genomic.fna
(0 to 15 characters are GCA_000696115.1)
Question1: remove characters after 15th ...
-1
votes
2
answers
135
views
Possible causes for css sticky positioning in a <thead> to not work
I've created a custom element that mimics c#’s datagridview. I was able to make the <thead> stick at the top like dot net’s listview or datagridview header until just recently I noticed it doesn’...
1
vote
0
answers
43
views
SFML Multiple drawing circles in different positions
i've been building a game in SFML C++, i created the window, created the main character, who is a green circle. Now i'm creating 5 red circles, they are the enemies. My main idea is create the 5 ...
-1
votes
2
answers
76
views
XSLT: Number position inside apply-templates with condition
I need to print the position number when calling the template, but with have the condition. I.e. "position()" is not suitable.
<xsl:template match="property" mode="table-...
3
votes
0
answers
56
views
Coordinates of text label after applying pos and offset parameters
Suppose I have the following plot:
plot(x=1, y=1, xlim=c(0,2), ylim=c(0,2))
text(x=1, y=1, lab="X", pos=3, offset=2)
How do I find the coordinates of the text label (lab="X") as ...
1
vote
1
answer
39
views
Alter object’s transform so its parent’s matches its child’s
Going insane over this. I’m trying to figure out a way so that when I grab an object, I can set the rotation & position of that object such that the rotation and position of the original object’s ...
0
votes
1
answer
39
views
I'm on windows, working with SFML in C++, and when I zoom in or out, it doesn't click the cell under the mouse
It's a game-of-life so with a grid of squares. I did that we can draw on the grid by clicking the cell (left click). Also (with a view) you can move from side to side with right click and zoom in and ...
2
votes
1
answer
61
views
position of images with css [closed]
okay, im doing one of my first pages with html and css, and look, you know that operagx and the other browser have the normal size screen and the fullscreen when you press f11, the problem here is ...
-1
votes
3
answers
56
views
Merging two word lists not working with position function
I've been trying to get a dictionary by mashing two different word lists together, but when I run it through Saxon it only repeats word #1 in wordlist2 on every row. It seems like Position() keeps ...
0
votes
0
answers
35
views
How to set windows positions and z-index in Rust Slint project?
I'm trying to work with Rust Slint GUI project.
But I don't know how to set windows level always top than other windows.(like z-index: 10000)
Also If run it, should displayed right side of the ...
0
votes
1
answer
26
views
HTML Why does my text start outside the div? [duplicate]
#image-container{
position: relative;
display: block;
}
#image-container img{
width: 100%;
height: auto;
display: block;
}
#short-text{
position: absolute;
font-size: 2vw;...