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

Using UIScrollView, when Zooming Out, how can I keep the content view at the center?

The minimum scale is 0.5 The maximum scale is 2.0 I need to always use larger contentSize for UIScrollView to be able to drag around the content. So, as the CGRect of the content is changing, contentSize of UIScrollView is also changing. However, as…
petershine
  • 3,190
  • 1
  • 25
  • 49
2
votes
1 answer

how to align two textfields?

I have an HTML code as follows Hello UserName:
Pass: I want the two text fields should be aligned in such a way that their left borders should start from the same positions of two…
Chandra Sekhar
  • 18,914
  • 16
  • 84
  • 125
2
votes
2 answers

CSS/HTML: Alignment issue in IE9 + jsFiddle

I have an odd alignment issue where an extra space is being added. Here is the code: http://jsfiddle.net/aVdGE/1/ I'm using IE9 with both my project and jsFiddle. Here is a picture of the jsFiddle result and here is the result viewed not in jsFiddle…
Alex Guerin
  • 2,336
  • 10
  • 36
  • 53
2
votes
1 answer

Jasper Reports image and text mix

I want to write a jasper reports application. It has to arrange an image and a text such that they will be appropriately placed. This is what I want. I get images and texts from a web service, so I can fetch image size on runtime. If its width is…
akaya
  • 1,140
  • 9
  • 27
2
votes
5 answers

Align an image in the middle of

I have the following code: The .css for the class="png" is: .png { position:absolute; } How can I make the Sold Out image to be shown in the middle,…
Nikola Nastevski
  • 917
  • 5
  • 14
  • 25
2
votes
2 answers

CSS: Alignment when floating

I have some page navigation buttons + a dropdown box that I'm trying to display side-by-side but they are not cooperating with each other. Both items are to float right. Fiddle: http://jsfiddle.net/u9dBm/1/ What's wrong: the red cross is what is…
Alex Guerin
  • 2,336
  • 10
  • 36
  • 53
2
votes
1 answer

iOS alignment lost in merging tentative definition

when I archive my iOS app I get the following errors: ld: warning: alignment lost in merging tentative definition _isDragging ld: warning: alignment lost in merging tentative definition _isLoading Could someone please tell me what's wrong and where…
Borut Tomazin
  • 8,041
  • 11
  • 78
  • 91
2
votes
2 answers

Button text wrap: vertical alignment issue

I needed to wrap text inside my buttons so I found this solution: How to wrap text of html button with fixed width However, after applying the solution I noticed that the vertical alignment of buttons changes. Here is the screenshot: Here is the…
Alex S
  • 1,171
  • 1
  • 9
  • 25
2
votes
1 answer

Stretching table cell text to both sides

I have a html table cell with the following data: 0/12 0% which shows like this: http://img202.imageshack.us/img202/6008/captureuhe.jpg what I want to do is move the % number (with the sign) to the most left side of the…
shaharmor
  • 1,636
  • 3
  • 14
  • 26
2
votes
4 answers

HTML/CSS aligning two inputs and text underneath

I am trying to place two input forms next to eachother and position some text underneath them. Somehow it never ends up aligned correctly. This picture shows what I am trying to do: HTML:
lean13
  • 23
  • 1
  • 1
  • 4
2
votes
4 answers

Center a form that contains a button in a div

I'm trying to align a to be centered in a
. This is what I've done till now:
This centers the…
sikas
  • 5,435
  • 28
  • 75
  • 120
2
votes
4 answers

Delphi Array Alignment set to 4, 8, or 16 byte boundaries?

I would like to use the FFTW C library from Delphi 2009 and according to this documentation; http://www.fftw.org/install/fftw_usage_from_delphi.txt to increase the performance inside the FFTW library (such that it can use SIMD extensions) arrays…
Bruce
  • 440
  • 1
  • 12
  • 19
2
votes
4 answers

HTML Form Input/Label Alignment

I'm trying to create a simple registration form. In order to align everything neatly I used the table method. However the text isn't aligned in the center of the table instead being very slightly below the table. I've used similar methods before and…
Flatlyn
  • 2,040
  • 6
  • 40
  • 69
2
votes
2 answers

Align fixed div to top right of variable width TD

I've got a project where I need to top-right align a div so that it sits on top of an existing variable-width td. What has me stumped is the variable width aspect. I can get the div to sit on top of the existing relatively positioned td by using…
salonMonsters
  • 1,237
  • 3
  • 16
  • 26
2
votes
1 answer

Alignment in iText library for java

I just got a question about alignment in the library iText. Say if i was to do a quote program. For example On the Left side of the page I would want to put Quote # 01 and on the same line on the other side of the page I want to put the date. Is…