Questions tagged [alignment]
In GUI (inc. web page) context, alignment refers to the positioning of visual elements. Or for memory addresses, being a multiple of some power of 2.
8,676
questions
0
votes
1
answer
59
views
Problem with TWinControl component not responding to form resizing
I have a visual control written in Delphi 10.4. To make it simple to focus on the problem I created just the TwinControl with properties of Anchors and Align. I included the AutoSize property. The ...
-1
votes
0
answers
12
views
Is there a way to align my screen.blits to the center of coordinates without changing the coordinates? [duplicate]
I am making a game in pygame but I encountered an issue, If I screen.bilt something it, the coordinates that I give are the top-left of the blit
but then, I need to blit the image to the center and ...
0
votes
1
answer
24
views
How can I align multi-line expressions at the equal sign?
I'm looking for a solution in annotating a ggplot2-figure with multilines in R, that are aligned at the equal sign like in LaTeX' equation using the "&-symbol" within in align{}-...
0
votes
0
answers
10
views
table and subtable alignement of fields
I use php to create a table with data that is read from a database.
I have managed to align correctly fields inside the columns of a table by using a global style directive as follows:
<style>
...
0
votes
1
answer
18
views
Trying to write the text in the center of each PPTX slide with python-pptx package
I am using python-pptx to create a PPTX that will consist in writing 1 single word (extracted from a list, provided in the python script) just in the center of each slide;
My list consists in 10 words,...
1
vote
1
answer
55
views
Text not aligning correctly (HTML & CSS)
I'm making a website and I have a problem with some text not aligning correctly in a div.
This is the Code:
.about-div {
display: grid;
place-items: center;
margin-top: 7.5rem;
margin-left:...
0
votes
2
answers
38
views
How to align a <div> with text in a sentence?
I am trying to make a template that auto fills text into a sentence. I have most of it working now the only issue is anywhere I used a div to fill data it forces the answer onto the next line and it ...
0
votes
1
answer
24
views
Aligning of two images on the turtle screen in Python
I am drawing a dot and then a block using the turtle module. However, the dot and the block are not 100% aligned, the block is displayed slightly above the dot's level. I am trying to get it to be one ...
0
votes
0
answers
14
views
Extract Reads by region from a BAM file
Hi I want to do two things.
Extract number of A bases from my BAM file with >= 20 reads aligned.
and I want to do that by genomic region. i.e. I also want to know if the particular A falls in 3'...
0
votes
0
answers
27
views
UILabel vertical text alignment to match Figma design
I have previously solved the challenge of creating a pixel perfect representation of a Figma design, but aligning text proved surprisingly difficult. I ended up with a solution that worked, but I was ...
0
votes
0
answers
19
views
How to change popup gravity of a spinner dropdown in android
I am currently developing a mobile application where I have to use a spinner. More formally I am using androidx.appcompat.widget.AppCompatSpinner. The spinner has this following options:
<androidx....
0
votes
0
answers
52
views
Aligning printf statements in C
I have some values I would like to align to the left. However, two numbers, 2400 and 2500 have extra offsets and I'm assuming its because of the longer key.name that's causing it. What can I do to ...
-1
votes
0
answers
61
views
Align logo to the left centered and text to the right in a flexbox container
I'm working on a job listing page using HTML and CSS, and I'm facing an issue with the layout. I want to align the logo to the left and the job title, company info, and other details to the right in a ...
0
votes
0
answers
30
views
Remove top margin in SwiftUI app for Apple WatchOS
My WatchOS app show a top margin and I don't know why. I'm using a VStack inside the main view, and I expect the title should be aligned top.
How can I remove the top space? The only think I found to ...
0
votes
2
answers
35
views
How do I center a form while not altering the contents and keeping them still aligned left?
The last problem for my Inputs section in Computer Science class requires me to style it to an existing website's style. That involves having the form centered but not its content. I have a form that ...
0
votes
1
answer
25
views
Aligning cards after filtering with JS
When I filter the cards with JS and hide some of them, I want the remaining cards to take their place.
<div class="mt-8 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-10 ...
0
votes
1
answer
25
views
Android Studio EditText center hint and left-align input text
I was wondering if it is possible in an EditText field to make the android:hint attribute centered, while the text the user types in would get left-aligned in the EditText.
Any idea how to do this?
1
vote
1
answer
84
views
Optimizing Algorithm for Image Translation with maximum common foreground pixel
I'm searching for an algorithm to efficiently determine the optimal translation of one 2D image onto another (limited to x and y axes, without rotation). The goal is to find the maximum common pixel, ...
0
votes
1
answer
37
views
QML baseline alignment without using a layout
I want to use baseline alignment anchor without using any fancy RowLayouts, etc. I want to use bottom anchor of a label be anchored with the baseline of the text edit. I thought, that baseline of ...
0
votes
0
answers
15
views
How do I change the width of a separator line in the footer?
I'm using the Ocean WP theme and I want to align the footer content in center. The content consist of my logo, a separator line and Privacy Policy and Terms of Service links. The content aligns on ...
-1
votes
0
answers
13
views
Right-align in the lstlisting environment in Overleaf
Good morning,
I'm not able to right align the following code:
\begin{lstlisting}[ language=R,
keywordstyle=\normalfont,
commentstyle=\normalfont\itshape,
columns=fullflexible,
breaklines=...
7
votes
5
answers
363
views
How to control the size of a class to be a multiple of the size of a member?
I have the following class,
struct employee {
std::string name;
short salary;
std::size_t age;
};
Just as an example, in Linux amd64, the size of the struct is 48 bytes, and the size of ...
-1
votes
3
answers
51
views
How would I format console output in python correctly?
from colorama import Fore
import platform
import distro
import time
import os
# Functions
def get_uptime():
return os.popen('uptime -p').read()[:-1]
def get_os():
return platform.system() + &...
-1
votes
0
answers
18
views
Inconsistent line breaks with floated li elements [duplicate]
I have a set of li elements that are 33% width and floated left, so that they line up three per row. For some reason, the last two elements appear on separate lines, one floated right and one floated ...
0
votes
1
answer
57
views
Pandas - Dataframe: Sort same values in same column , and if in Row value does not exist put NaN (or 0)
I built a dataframe which already grouped from a dataset all the same Frequencies of different Channels together. Now in each row I have first my frequency and then the Channels in which it occurs.
...
1
vote
1
answer
43
views
Optimal string from segments with words and timestamps
I have a list of segments of transcribed audio. These transcriptions have words with timestamps and confidence. For example:
Goedemiddag, 1.13 1.54 0.94892578125
welkom 1.68 1.98 0.9658203125
...
1
vote
0
answers
33
views
NASM pads section to 512 bytes
NASM compiler stubbornly pads my data section with 0s making it 512 bytes in size. I can't figure out what happens. As per the documentation the default section alignments are much smaller. Here's en ...
0
votes
2
answers
42
views
Equal padding for items displayed with flexbox
I have a list of items that I want to be displayed with 6 on the top and 7 on the bottom. However items that longer words are not being centrally aligned.
This is currently what it looks like.
As you ...
0
votes
1
answer
23
views
Flutter Align topRight in a card in row is not working, keep sticking to the left
I have a card widget that wraps around few alignments. The centered and bottom left alignment works, but I want to show something on the topRight too, it keeps sticking to the left.
Image:
Code for ...
0
votes
0
answers
19
views
Autocomplete List not centred below box (Next.js + Material UI)
Im trying to learn Web-Development on my own and a colleague suggested Next.Js/React and I like material UI.
Problem is, that the first thing im using - an autocomplete box - is not doing what I think ...
0
votes
1
answer
42
views
How can I properly implement #ID:hover{} in CSS with no missalignment on other HTML elements?
So, I've been trying my hand on <div> elements for the first time, which I've had no problems with so far. But now, I want to have a div box, which has multiple <a> links, as <img>'s ...
0
votes
2
answers
31
views
Making HTML/CSS items stick/align to left and right edges of a row?
I want to have
a longish but not extremely long <h1> title, and as usual, I want it to align to left edge of page; and then,
I want a single normal word (so as first approximation, I've put it ...
0
votes
2
answers
41
views
How to align center a row with a text that wraps using TailwindCSS?
I have a problem using TailwindCSS to align center some elements in a flex-row as soon as the text in the row item starts to get longer and wrap.
Here is my current implementation:
<div class="...
0
votes
0
answers
6
views
Error when using tab key in word as the pattern doesn't appear
I try to create a tab that have pattern "_____". However, when I press the tab key, it create tab but it didn't have the pattern.
1
vote
1
answer
47
views
How to center buttons (widgets) in a grid - GTK C
I am trying to center these buttons in the grid created. I've tried set_halign and variants but nothing's what I'm looking for. Unsure how to format, but please help.
#include <gtk/gtk.h>
...
0
votes
1
answer
19
views
Hamburguer menu icon is not align in the same height of tabela and doesn't follow the same style
I added a hamburger icon that currently isn't doing anything. When the user clicks it, it should open a side panel on the left-hand side to display the options our website has, meaning it should show &...
0
votes
1
answer
31
views
Aligning text box to bottom right of Google Slides using Google App Script
After much head-banging, I'm coming to Stack Overflow for help! I'm using a Google App script to automatically add today's date to all my slides. The function I have works, but it adds the date to the ...
0
votes
0
answers
22
views
Redirecting the output of a command related to another command
I want to get a .txt file showing the computer's performance of gtime command related to another command: bwa mem.
Bwa is a genome aligner tool.
Below the code I've used:
{ gtime -v bwa mem -t 4 -R @...
0
votes
0
answers
6
views
How do I put my image below the navigation bar if its coming along with it?
I have created a navbar and in that added some icons however after creating a separate div also and putting my img in it still it is coming side by side to those icons.your text
please tell the answer
...
1
vote
1
answer
35
views
RDLC Proportional Image Alignment
In a RDLC file, is there any way to align an image to the center of a Tablix cell height? Somehow, it can only have a fixed location. The only solution I can find would be the padding, but I can't ...
0
votes
0
answers
12
views
How to Perform Force Alignment on Windows without WSL or Cygwin? Python Module Recommendations Appreciated
I'm currently working on a project that involves Force Alignment, and I'm looking for a way to accomplish this on Windows without resorting to tools like Windows Subsystem for Linux (WSL) or Cygwin. I'...
0
votes
0
answers
12
views
How to place a table to the right of an image in iText7
In creating a pdf file using iText7, I am trying to get a table to sit to the right of a chart. Currently they are taking up the correct sizing but the top of the table on the right is in line with ...
0
votes
2
answers
31
views
align text in HStack
I need to make it so that no matter what the item.number is 1, 10, 100, 1000. and whether the number is highlighted - the item.userName is always exactly under each other, and the numbers are right-...
0
votes
1
answer
38
views
Aligning list texts to the centre of bullet icon
Trying to align the list texts to the svg icons of the bullets in an unordered list.
Tried a lot of the solutions available on the internet but setting vertical-align: middle does not do anything and ...
-2
votes
1
answer
24
views
Alignment issues in layout - Wordpress CSS [closed]
Somewhere along making edits, the layout of this page has ended up with the boxes mis-aligned - https://canons.com/our-products-bespoke-services/
Any advice/help on how to fix this is appreciated. ...
0
votes
0
answers
20
views
If I pass SPF but fail alignment is this only because of provider restrictions?
We utilize amazon SES as an email platform, and we whitelisted a single email with a client That basically just involves the recipient saying allow Amazon ses to send, then Amazon lets us use that ...
0
votes
0
answers
10
views
bowtie2 is not generating the .sam file
I am trying to do global alignment using bowtie2 with following command:
bowtie2 -p 4 -x bowtie_index/wu_0 wu_0_A_wgs.fastq -5 wu_0_A_wgs.bt2.sam >& wu_0_A_wgs.bt2.sam
It showed me the working ...
0
votes
3
answers
86
views
Is stack pointer check for alignment during local variable definition?
I see some #pragma, __attribute__ and alignas methods for aligning, but the question is it, Does the compiler-generated code check the memory address (Stack pointer) in runtime and add padding if ...
0
votes
1
answer
29
views
Why the navbar is not floating to the center of the screen using Tailwind CSS?
I can't understand why the navbar in align to left while i set the margin: auto and justify: center and all other necessary property. But the navbar still is not float to the center. Why ?
See the ...
1
vote
0
answers
40
views
Using JavaScript .join() results in misaligned vertical characters
I'm using the following code to wrap every word inside two span elements:
<p data-anim="wrap-words">Lorem ipsum dolor sit amet.</p>
function wrapWords() {
const strings = ...