Questions tagged [leftalign]

Left alignment refers to the left positioning of a visual element in a GUI.

This tag should be a synonym or merged with .

25 questions
36
votes
2 answers

Trouble left-aligning UIButton title (iOS/Swift)

I'm having a problem left-aligning a UIButton's text. I also tried changing it to .Right but it still stays centered. I also tried aButton.imageEdgeInsets = UIEdgeInsets(top: 0, left: 20, bottom: 0, right: 0) instead of…
stumped
  • 3,017
  • 6
  • 35
  • 67
26
votes
9 answers

Add lefthand margin to UITextField

I want to put the left margin of a UITextField's text at 10 px. What is the best way to do that?
iOSPawan
  • 2,854
  • 2
  • 22
  • 50
18
votes
3 answers

QPushButton icon aligned left with text centered

In my Qt 5.7.1 application I've some buttons, I want to align button's icons to left and centre text, but there is no option in designer to do this. I can align icon and text left by adding to button stylesheet this code: text-align:left; But…
km2442
  • 689
  • 1
  • 9
  • 29
6
votes
4 answers

Algorithm to Convert text from Left Align to Justify

Recently I was asked in an Interview to design an algorithm to convert an input string which is Left Aligned (with spaces at the end of each line) into Justify (with no white space at the end of a complete line), similar to that in MS Word. I…
Rajat Shah
  • 241
  • 1
  • 7
  • 18
4
votes
2 answers

Stock chart timeline buttons and date field left align with chart

I need guide make my chart as shown in the attached screenshot. I have been using HighCharts for this purpose, but couldn't find appropriate options or configurations to do so. Following is the screen shot of my required design: I am also attaching…
Rahat Ali
  • 43
  • 6
4
votes
4 answers

NSCollectionViewFlowLayout - left alignment

NSCollectionViewFlowLayout produces a layout with items justified on the right margin or, if the container is only wide enough for one item, centres items. I was expecting an alignment option, e.g. on the delegate, but am not finding anything in the…
Obliquely
  • 6,539
  • 2
  • 29
  • 50
3
votes
1 answer

Python logging: left align with brackets

I would like to format the logger with brackets and left-align the text. formatter = logging.Formatter('[%(asctime)s] [%(levelname)-8s] [%(funcName)-12s] %(message)s') Here is the result [2019-09-13 16:22:56,050] [INFO ] [main ] …
cogimi
  • 39
  • 1
2
votes
2 answers

Left align with printf in bash with unknown width

I am trying to left align with printf in bash with unknown width. How do I do so? So sort of like this, but this does not work max= printf "%-${max}s|", "Instance" The point of this is the instance below will be an unknown…
Ryan Harlich
  • 67
  • 1
  • 7
2
votes
1 answer

How can I align datatable column headers to the left in Shiny?

For some reason I cannot have column headers of a datatable properly aligned left: library(shiny) library(DT) library(ggplot2) ui <- fluidPage( title = "Examples of DataTables", sidebarLayout(mainPanel = mainPanel( …
statquant
  • 12,389
  • 13
  • 75
  • 148
2
votes
1 answer

How to align a new column left with Bulma?

Using Bulma, I'd like a new row to be left-aligned when I make my window smaller. However, when I add a fifth column, this column goes to the middle of the page. When I add a 6th column, the fifth column goes to the middle of the left side of the…
Hibisceae
  • 43
  • 2
  • 8
2
votes
1 answer

left/margin-left value for a table-cell div

I have this html:
//contents
and this css: #main { padding:10px; margin-top:5px; display:table-cell; font-family:Calibri; font-size:25px; background-color:#50aafb; } and i have javascript that calculates…
Sp3ct3R
  • 685
  • 1
  • 12
  • 24
1
vote
0 answers

Aligning arrows on matrix transformations in Latex

I've got some augmented matrices I'm applying transformations to, but I can't find anything on how to use an align* enviromnent to align them with the arrows representing each ERO as a substitute for &=. Instead, they get right aligned to the 0's at…
LachShed
  • 11
  • 1
1
vote
3 answers

left align images breaks ul block

Aligning the image(400x100) left breaks the ul block: some items are on the right side of the image, some items are under the image. How to make the ul block stay together? i.e. all items are on the right side of the image. Also the image overlaps…
Dave
  • 691
  • 2
  • 9
  • 20
1
vote
2 answers

How to write to .txt file with left align text in python?

I'm trying to write data to a txt file in a for loop using the code [python]: f = open('top_5_predicted_class.txt', 'w') f.write('Predicted Classes' + '\t\t' + ' Class Index' + '\t' + ' Probability' + '\n\n') for i in range(0, 5): …
Filipa Almeida
  • 29
  • 1
  • 10
0
votes
0 answers

How to align text in 80mm paper with vb.net

I wanted to aligned text on an 80mm paper from an Epson thermal printer. I tried all I could by setting the margin from the device page on the PC it did not work. It prints but to the right and part of the text did not appear on the paper. Please…
1
2