Questions tagged [right-align]

Right alignment refers to the right positioning of a visual element in a GUI.

Right alignment refers to the right positioning of a visual element in a GUI.

144 questions
173
votes
4 answers

Align right in a table cell with CSS

I have the old classic code like this, which does what it says: it right aligns the content in the cell. So if I put two buttons in this cell, they will appear at the right site of the cell. I was refactoring this to CSS, but…
Michel
  • 23,085
  • 46
  • 152
  • 242
72
votes
5 answers

Android Layout Right Align

I have the following layout in place
Señor Reginold Francis
  • 16,318
  • 16
  • 57
  • 73
21
votes
4 answers

Right Aligned Italic Text in textbox cut off

I have a few textboxes that are read-only. I've made that text italic but for numeric fields where I've also right aligned the text the last number gets cut off. Adding padding only makes the textbox larger but doesn't fix the issue as you can see…
Rodney Maspoch
  • 955
  • 3
  • 13
  • 19
12
votes
1 answer

How to align button right using Semantic UI

I need segment with text(inside

), and button on next row on the right I try next markup, but it seems not working properly( button overflow segment border):

Some Text.

Andrey Ischencko
  • 800
  • 1
  • 6
  • 18
10
votes
3 answers

Is there any way to right align the text in a JCombobox

I want to have a JComboBox with right align. how can I do that? someone before said "You can set a renderer to the JComboBox which can be a JLabel having JLabel#setHorizontalAlignment(JLabel.RIGHT)" but I don't know how can I do that?
Naeem Baghi
  • 811
  • 2
  • 14
  • 29
9
votes
2 answers

In iOS - How do I fit a UILabel to its text, without changing its position?

I'm calling sizeToFit on a UILabel which has right aligned text in it. It shrinks the height and width of the UILabeland fits the text to the top left of the UILabel. Now...the position of the UILabel is incorrect. How can I make the UILabel stay in…
Doron
  • 3,176
  • 7
  • 35
  • 60
8
votes
10 answers

CSS vertical align puzzle with float right and variable line height

I have a table where numbers are aligned to the right and texts can have more than 1 line. http://jsbin.com/qelosicono/1/edit?html,css,output The vertical-align:middle does not work with float:right unless I set the line-height which I can not set…
daniel.sedlacek
  • 8,129
  • 9
  • 46
  • 77
7
votes
1 answer

log4j alignment

By checking IntelliJ IDEA's log output, I noticed the alignment was very nice (due amongst other to the fact that class names are right aligned and trimmed). How do you do this using log4J? Do you need a special appender? 2011-01-08 00:48:53,938 [ …
SyntaxT3rr0r
  • 27,745
  • 21
  • 87
  • 120
7
votes
3 answers

How to right-align Android spinner

I'm trying to right-align the text of an Android spinner. I have been through Stack Overflow and tried the recommended solution but it's not working for me so, I'm a little confused as to what I have done wrong. My feeling is that my layout is not…
greysqrl
  • 937
  • 3
  • 13
  • 31
7
votes
2 answers

Right align text in with letter-spacing

If you left align text in an input, it stays left aligned, no matter how you set the letter-spacing. If you right align text in an input, the letter-spacing can push it away from the right edge. Example (shows up in Firefox, Chrome):
Chris
  • 5,876
  • 3
  • 43
  • 69
6
votes
9 answers

How do I right align text within a JLabel?

I have the following code: JPanel panel = new JPanel(); panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS)); for(int xx =0; xx < 3; xx++) { JLabel label = new JLabel("String"); label.setPreferredSize(new Dimension(300,15)); …
Grammin
  • 11,808
  • 22
  • 80
  • 138
6
votes
2 answers

How to ignore the extra white space in Google Chrome in a right aligned table row?

I have a table with right align cells that is generated at server side. Each line within a cell is optional, so it is enclosed in an if-then statement at server side. The sample html shows 3 columns, where the first column is faulty in Google…
Linefeed
  • 989
  • 2
  • 12
  • 18
6
votes
2 answers

Center AND Right Align

In many weighty and serious tomes, particularly those published by the UK's venerable Her Majesty's Stationery Office (HMSO), one sees a great number of tables. Often if the column contains numeric data, not only is it centred in the column, but…
casgage
  • 529
  • 1
  • 7
  • 18
5
votes
1 answer

how to put button in top right most corner in jetpack compose

I do not know how to put button at top right most corner of the screen in jetpack compose.Please help me with the code? I have added button but it is showing at the centre of the screen
5
votes
2 answers

Multiple MessageBox Options

It's a silly question but I couldn't find an answer to that : I'm using a messagebox to display text in hebrew and I need both RTLReading and RightAlign. I'm currently using : MessageBox.Show(msg, title, MessageBoxButtons.OK,…
Or Betzalel
  • 2,427
  • 11
  • 47
  • 70
1
2 3
9 10