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
3
votes
3 answers

JButton: Icon left-aligned, text right-aligned

I'm trying to create a JButton with an icon and some text in it. My problem is that I want the icon to be left-aligned and the text right-aligned (It isn't necessary to be right-aligned, but I don't want the text to stick to the icon). Not being…
1r0n1k
  • 405
  • 1
  • 4
  • 14
3
votes
2 answers

Place and fix an icon at right of input textbox using Twitter Bootstrap

I've just started using Twitter Bootstrap (I'm new to it so I don't fully grasp it quite yet!) and I'm trying to create a two-column form with some specific visual elements. The complete width of the form is approx. 80% of the width of the viewport…
CraigTP
  • 44,143
  • 8
  • 72
  • 99
3
votes
1 answer

Center single column in ListView holding an image

I have a Listview that has three columns. The last columns holds an image that only gets displayed if the data the column bind to is true.
Fred
  • 5,663
  • 4
  • 45
  • 74
3
votes
2 answers

Emacs calling align regexp

I am trying to pass arguments to the align-regexp function in Emacs (Lisp): (defun align-on-comment-char () (interactive) (align-regexp (region-beginning) (region-end) "#") ) I would actually like to do this for all my modes specifically, where…
PascalVKooten
  • 20,643
  • 17
  • 103
  • 160
3
votes
2 answers

Working out address alignment

How do you work out the alignment of an address by just looking at it? On a 32bit system, an address of 0x12345670 means it's 16 byte aligned (because of the 0 on the end) right? So what about: 0x12345671 0x12345672 0x12345673 etc? Cheers, Jon
Jon
3
votes
2 answers

CSS text-align for other stuff than text (like buttons)

According to W3Schools the property is used to "align text within elements". When using it in different ways however, like buttons, it also works perfectly. See this JsFiddle Is it a good idea to use the align-text CSS property in situations like…
MarioDS
  • 12,895
  • 15
  • 65
  • 121
3
votes
3 answers

Vertically Centering Inline Content Using line-height

I'm trying to vertically center some text besides two image links. I've done this dozens of times before but for some reason it isn't working right now. Here's the code: http://jsfiddle.net/KRWNw/