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

JQuery Galleria alignment in Firefox

I have added JQUERY Galleria a site that I have created but am having problems with the alignment in firefox. Chrome renders the galleria fine, but in Firefox the actual galleria displays to the right of the div that i want it in. See…
Vishal
  • 51
  • 3
2
votes
0 answers

Berkely Word Alignment

Is there anybody who can guide me a bit about Berkeley Word Alignment tool? Specifically, I want to know how another distortion model can be implemented to be used in HMM word alignment.
NailaKhan
  • 21
  • 1
2
votes
2 answers

Vertical Align Unordered List Nav Links?

I see that this question has been asked many times but I think my case is slightly different. The navigation for the site I am working on is constructed with an unordered list like so:
2
votes
0 answers

writing data structure in C# with regards to byte alignment

I have a problem with data alignment in a file that I am creating from C# to be used in a legacy app. I have all my data stored as a List of structs. List m_Items = new List(); where the CParameterItem looks…
2
votes
1 answer

Alignment in GridBagLayout (applet)

I have a problem with GridBagLayout. My components doesnt want to look like i want ;) I want to make a layout like this: I wrote a code: JTextField first = new JTextField(); ... add(third, c); Results look like this, which is "almost"…
marxin
  • 3,692
  • 3
  • 31
  • 44
2
votes
1 answer

Align a TD to the right of the TABLE

Lets say that I've got 3 columns, 1 row. I want to have the first column as big as it can get, without making the other columns content to jump down a line(as if there were a linebreak). Like…
ZyteX
  • 239
  • 2
  • 5
  • 13
2
votes
3 answers

CSS: Spacing issue with dropdown

I've got a dropdown I've made: http://jsfiddle.net/QPxVe/ For some reason, jsFiddle is altering the alignment which is not present outside of jsFiddle - this is not the issue. I seem to have a gap between items and I cannot see why it is being…
Alex Guerin
  • 2,336
  • 10
  • 36
  • 53
2
votes
4 answers

Vertical Align Middle an image in an a tag in a div

This has probably been done before but I can't find a solution for my specific case. I have the following:
How can I get the image to align into…
David
  • 16,246
  • 34
  • 103
  • 162
2
votes
1 answer

How to center align logo image and right align navigation ul

Both the logo and navigation are in a header div and I'd like to have the logo centered while the navigation is aligned to the right. I've tried doing display:block and margin: auto for the image which gets it centered, but then it pushes the…
toandang
  • 109
  • 1
  • 3
  • 11
2
votes
1 answer

CSS dynamic text alignment depending on the length of the text

Let say i would like to cover the below 2 scenario (the title is dynamic) : Could that be achieved with CSS only (no JS) for IE8+ ? Scenario A : short header title to be aligned center relatively to the page width | back button | …
seb
  • 425
  • 5
  • 16
2
votes
1 answer

Aligning template vector struct for SSE

I am writing a software rasteriser using MSVC++ Express 2010 for windows. I am using SSE and need aligned data structures. I have a number of separate vector structs for different fundamental data types (float, int etc.) that I want to roll into one…
lamorna
  • 23
  • 3
2
votes
4 answers

How to center two blocks with some gap inbetween using CSS?

What I would like to reach is the following design: Two text blocks with some gaps inbetween aligned around the page midline (see the picture). I tried to play around with float property, using margin and padding to get the gap, but I can't get…
Alexander Galkin
  • 12,086
  • 12
  • 63
  • 115
2
votes
1 answer

JEditorPane, alignment of images in the text

_https://i.stack.imgur.com/W2We5.gif " _https://i.stack.imgur.com/VPHzw.gif Required: _https://i.stack.imgur.com/WlMhG.gif I need to align the image in the JEditorPane…
user1221483
  • 431
  • 2
  • 7
  • 20
2
votes
1 answer

Android - Vertical align of Listview row content

I can't align the content of ListView rows vertically on middle. Screenshot of Listview: Its my Listview row layout
Cosmologist
  • 508
  • 1
  • 5
  • 16
2
votes
1 answer

memory alignment for structure

I am having a struct with three fields defined as follows: struct tmp { char *ptr; unsigned int data1; unsigned int data2; }; After compiled with GCC on a 64-bit system using Intel sandybridge processor, the sizeof(tmp) returns 24. To…
pusam
  • 403
  • 1
  • 4
  • 5