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.

In GUI (inc. web page) context, alignment refers to the positioning of visual elements. Three possibility of alignment left, right, and center.

In a memory addressing context, alignment is the placement of data or code at memory addresses that are multiples of some (usually small) power of 2, for example having an array start at a 16-byte boundary with C++ alignas(16) int foo[1024];. This means the address will end with at least 4 0 bits.

For this meaning, prefer the tag.

8627 questions
2
votes
9 answers

How can I horizontally align a form?

How can I horizontally align a form? For example:
Will give boxes as such: email send Whereas I want them to…
Marlon
  • 597
  • 2
  • 8
  • 17
2
votes
3 answers

How to center two divs considering the different resolutions of users

Im a newbie in css and Im having trouble centering two divs. I have a 1920 x 1080 screen resolution and using margin will not center the two divs if the visitor of my website have lower resolution. I know it will moved, right? Details: Please take a…
Ben Daggers
  • 1,000
  • 1
  • 16
  • 51
2
votes
0 answers

unable to align multiple controls in SwiftUI

I'm trying to align controls as shown in "Storyboard" pic using the SwiftUI but not sure why still there is distance between segment control and search-Bar, and also between scan icon and the "Last week activities" Below is the code of SwiftUI…
janubhai
  • 183
  • 1
  • 8
2
votes
1 answer

Aligning the table to te center of the page in Markdown

I want to align the table to the center of the page, how ever the
function does not work. How would I be able to achieve this in markdown? Code: #
Lesson 1 Calculus 310
|…
cream er
  • 67
  • 6
2
votes
1 answer

Vertical alignment not working as expected in HTML

I'm creating an HTML email signature and for some reason I'm having an issue with aligning an image and some text in the middle vertically. I am looking at my signature by opening the HTML in Chrome/Gmail which both act the same and then separately…
Lewis Hardisty
  • 91
  • 1
  • 1
  • 5
2
votes
1 answer

Is it possible to align one point cloud with another while keeping one point fixed?

I have two similar, but not identical, roughly cylindrical pointclouds. Currently, to align them I roughly align their major axes (method unimportant for this question) and then use open3d's ICP to fine tune the fit. Is it possible for me to do some…
Breadman10
  • 81
  • 6
2
votes
1 answer

Could you use C inline assembly to align instructions? (without Compiler optimizations)

I have to do a university project where we have to use cache optimizations to improve the performance of a given code but we must not use compiler optimizations to achieve it. One of the ideas I had reading the bibliography is to align the beginning…
S.Buzzoni
  • 35
  • 4
2
votes
1 answer

How can I compare protein sequences to find closest match

How could I build a tool to help with this scenario : I work in a lab where we use plasmids to express recombinant proteins. We have a database containing all the plasmid identifiers and the sequence of the protein that they code for. When a new…
2
votes
2 answers

Align text vertically flutter

I think the best way to explain my issue is with images, so this is what I want to achieve, dont mind the styling of either image. But when I try to implement it myself, the bottom text gets indented. Here are my code. Note I am new to flutter, so…
Gustav
  • 39
  • 7
2
votes
1 answer

If I use alignas on a class, is the first member or base class aligned?

If I declare my class struct alignas(16) C { int x; };, is x guaranteed to be aligned to 16 bytes or could the compiler pad it on the “left”? What about template struct alignas(Align) Aligned : T { using T::T; };?…
Ben
  • 9,184
  • 1
  • 43
  • 56
2
votes
1 answer

Column vertical SpaceBetween not taking into account

Can not understand why in this card, in the column, the spacebetween vertical alignment is not taking into account. I'm expecting the Title to be on top, and the "View Details" button to be at the bottom of the Column fun UserCard(image:Int,…
Jerome
  • 2,429
  • 2
  • 22
  • 37
2
votes
1 answer

How can the alignment requirement be satisfied?

I think that I am misreading the standard quotation, hence I do not fully understand what's the exact intent of the wording. Firstly, I am already aware of what alignment requirement is, but I can't figure out the exact relation between alignment…
user18323922
2
votes
2 answers

Why the Struct padding is same in 64 bit and 32 bit systems?

After much time spent on the internet to find the answer, I didn't get anything. My question is this: I have a 64-bit system and when I run this code: #include using std::cout; class A { char a ; //1 char b ; //1 int c; //4 …
Hamza
  • 42
  • 7
2
votes
2 answers

How to properly access packed struct members

What is the correct way to access packed struct's members? struct __attribute__ ((packed)) MyData { char ch; int i; } void g(int *x); // do something with x void foo(MyData m) { g(&m.i); } void bar(MyData m) { int x = m.i; …
DDG
  • 147
  • 1
  • 6
2
votes
2 answers

Flutter chat text align like Whatsapp or Telegram

I'm having trouble figuring this alignment with Flutter. The right conversion on Whatsapp or Telegram is left-aligned but the date is on the right. If there's space available for the date it is at the end of the same line. The 1st and 3rd chat lines…
alex smith
  • 470
  • 6
  • 16
1 2 3
99
100