Questions tagged [text-justify]

The text-justify is a CSS property which can be used to specify the text justification method when using text-align: justify.

The text-justify is a CSS property which can be used to specify the method of text justification when using text-align: justify.

It is important to know that this CSS property is not widely supported in all browsers - it is commonly supported only in Internet Explorer.

95 questions
2
votes
2 answers

How to justify text in fpdf

we are making a report in PDF by using FPDF. we are getting text in our pdf report by using $pdf->WriteHTML(utf8_decode($main));, now we want to justify text in report, but we are not able to do the same. Please suggest solution for this. Thanks!
Harinarayan
  • 121
  • 1
  • 2
  • 12
2
votes
6 answers

Justifying text in Android

I need to justify some text (RTL), which is a string (S1) from the server. But a TextView can't justify text, so I have to use a WebView, now I have to create a HTML file in which will display S1. And then I store the address of that html file in…
Shayan Pourvatan
  • 11,898
  • 4
  • 42
  • 63
2
votes
1 answer

CSS: apply word-wrap break-word to fluid width text with floating image

I need to break long words as for example long links. The layout I am working on is a fluid-layout, so no fixed width is provided. Instead of that, I need my text block to adjust to any container's width and get long words broken so that they…
Gerard
  • 73
  • 1
  • 1
  • 6
2
votes
2 answers

Set justification to substring of html string in android

I am developing an app which needs to align justification for substring of html string. Issue: I have used webview to set justification for html text by using following code String htmlText = " %s…
Neeha
  • 727
  • 3
  • 9
  • 21
2
votes
2 answers

Space objects equidistantly with CSS

I'm trying to space a UL equidistantly: http://cssdesk.com/jMSsr The first row spaces out perfectly, but the second row doesn't space out as there are only 2 items. I'm using text-align:justify to space out the list evenly but this causes issues on…
JV10
  • 891
  • 3
  • 17
  • 40
1
vote
1 answer

Why Android WebView does not display properly HTML page with Hebrew text when text-align set to "justify"

I want to display local html file on a WebView. (Android 2.3.3) The HTML contains Hebrew text. I want the text to be justified, so in my css file I do the following: body { text-align: justify; direction: rtl; } But for some reason the text…
Avi Shukron
  • 6,088
  • 8
  • 50
  • 84
1
vote
1 answer

why the padding applied to the item3 eventhough i did not apply it. i applied it only to the item4

I tried applying padding only to the item4 but it also got applied to the item3 and the text inside the item3 is also not centered as i expected it to be.
Rakesh
  • 11
  • 2
1
vote
1 answer

How can I justify rich text with in Google Colab Markdown?

When I use this in text cell in Google Colaboratory:

Some plain texts will be aligned justify

to plain text it works just fine, but when text e.g gets bolded or gets hyperlinks then it doesen't work properly. (like in…
DeJulia
  • 51
  • 4
1
vote
1 answer

text justification problem: chat with alternating alignment

I am trying to do a text justification on the following array and transform it into a chat system as pictured. So far I am able to get the alignment right but I am stuck on trying to make it looks like a chat conversation "1", "2" indicate the…
bloomsdayforever
  • 263
  • 2
  • 13
1
vote
1 answer

is there any way to do JUSTIFY the text in a UITextView in iOS

Is there any way to 'justify' the text in a UITextView in an iOS app?
neoJacob
  • 177
  • 1
  • 12
1
vote
1 answer

Graphviz left-justify edge label text

I am trying to fruitlessly trying to figure out how I can left-justify my edge labels in graphviz. If anyone has a solution please help! I have created a dataset to map object dependencies--then reading into graphviz via iterrows. Here is my Python…
cgoldie
  • 123
  • 8
1
vote
1 answer

Justifying Android EditText using JUSTIFICATION_MODE_INTER_WORD

I have an EditText in my app. I tried to use JUSTIFICATION_MODE_INTER_WORD (https://developer.android.com/reference/android/text/Layout#JUSTIFICATION_MODE_INTER_WORD) To make it's text…
AVEbrahimi
  • 17,993
  • 23
  • 107
  • 210
1
vote
2 answers

Text doesn't get right aligned in display flex

Please note that it's not a simple "how do I get XXX" question. I can achieve the look I'm going for but I'm surprised on how. Hence, I fear that I'm doing it in a bad way. As shown in this fiddle, the text inside the divs is left aligned and the…
Konrad Viltersten
  • 36,151
  • 76
  • 250
  • 438
1
vote
0 answers

Internet Explorer 9 CSS Text-Align Justify is not Justified but Centered within table cells

Demo page: http://froyo.tv/test/index_table.php IE9, Opera10 Firefox3, Chrome, AndroidBrowser, IE9 CompatibilityMode, IE8(I think), ... From W3C: http://www.w3.org/TR/CSS2/text.html#alignment-prop In the case of 'justify', this property…
1
vote
1 answer

jupyter notebook justify text in markdown cells

Topic Hey, i would like to use my Jupyter Notebooks for my Thesis. Therefore it would be nice to format the text within the markdown cells as justified text. Settings I created the {yourUser}/.jupyter/custom/custom.cssfile with the follwoing…
Kay
  • 173
  • 1
  • 1
  • 9