473,325 Members | 2,342 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

CSS justify question

I have a block of text that's split over two columns. The text is
fully-justified. Since the browser has no way of knowing that the text
is split between two columns, the last line of the first column is not
fully-justified - it is right-justified. This makes it look like the
block of text ends, and another block begins in the next column.

Is there any way to make the last line fully-justified?

Thanks,
Jeremy
Jun 8 '06 #1
6 5803
Deciding to do something for the good of humanity, Jeremy
<je*****@uci.edu> declared in comp.infosystems.www.authoring.html:
The text is fully-justified.


Justified text is generally quite difficult to read on screen.

--
Mark Parnell
My Usenet is improved; yours could be too:
http://blinkynet.net/comp/uip5.html
Jun 8 '06 #2
Jeremy <je*****@uci.edu> scripsit:
I have a block of text that's split over two columns. The text is
fully-justified.
Stop doing so. Problem solved.
Since the browser has no way of knowing that the
text is split between two columns, the last line of the first column
is not fully-justified - it is right-justified.
An interesting problem, but why do you want to create it?
This makes it look
like the block of text ends, and another block begins in the next
column.


Right.

By the way, if you think that your question is a CSS question, as you say in
the Subject line, why did you post it here and not in the CSS group
(c.i.w.a.stylesheets)?

On the top of my head, I'd say that there's no way to tell browsers to
justify even the last line, no matter whether you do the justify in HTML
(align="justify") or in CSS (text-align: justify). There might be some
imaginative approach, but why would you try to find it? We know that
justification is generally a poor idea on the Web, except perhaps for small
pieces of text for special reasons.

--
Yucca, http://www.cs.tut.fi/~jkorpela/

Jun 8 '06 #3

Jeremy wrote:
Is there any way to make the last line fully-justified?


View it in a browser that chooses to render it that way. Your page has
_suggested_ the rendering to the browser, but the rest is up to that
user's particular choice of tools.

As an aside, I'd lose the multiple columns. They're a nuisance on
screens - hard to read and scrolling a long page is just easier. They
have some uses for print output, but just look how awkward it is to
read multi-column PDFs on-line.

Jun 8 '06 #4
Mark Parnell wrote:
Deciding to do something for the good of humanity, Jeremy
<je*****@uci.edu> declared in comp.infosystems.www.authoring.html:
The text is fully-justified.


Justified text is generally quite difficult to read on screen.

Unfortunately, it's not my decision. And justified text doesn't have to
be quite difficult to read. The only reason it is so is that browsers
are awful at rendering it. Ever read an academic paper as a PDF? May
have been hard to read, but it was probably more due to the content than
the presentation ;-)

Throw in some hyphenation support (which we'll see come CSS3; there are
already javascript libraries to implement it as well) and
fully-justified text won't be such a big problem.

Thanks for your reply.

Jeremy
Jun 9 '06 #5
Jukka K. Korpela wrote:
Jeremy <je*****@uci.edu> scripsit:
<snip>
Stop doing so. Problem solved.

See previous reply. It's not my decision.
Since the browser has no way of knowing that the
text is split between two columns, the last line of the first column
is not fully-justified - it is right-justified.


Again, not my decision.

<snip>
By the way, if you think that your question is a CSS question, as you
say in the Subject line, why did you post it here and not in the CSS
group (c.i.w.a.stylesheets)?


Unfortunately, my NNTP server doesn't seem to carry that group. Since
it's pretty common for an expert in HTML to be an expert in CSS, I
didn't think it would hurt anyone if I asked here.

Jeremy
Jun 9 '06 #6
Jeremy <je*****@uci.edu> scripsit:
It's not my decision.


That's what they all say. This is apparently a decision by some people who
don't understand the technical issues of WWW authoring, yet want to decide
on them.
By the way, if you think that your question is a CSS question, as you
say in the Subject line, why did you post it here and not in the CSS
group (c.i.w.a.stylesheets)?


Unfortunately, my NNTP server doesn't seem to carry that group.


Really? Then ask the newsmaster to order it, or get a decent service
provider.

Besides, even if c.i.w.a.stylesheets did not exist, CSS as such would be
off-topic in this group.

Anyway, _if_ there were an answer to the question, it would be a CSS answer.
In fact, the answer would exist in the CSS 3 Text Effects Module - but
that's just working draft, or a sketch, and essentially unimplemented.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Jun 9 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Owen Jacobson | last post by:
We all know that text-align: justify; is supposed to justify the block's text across the box. I have a friend, however, who wants to take that further. A visual example, because it's 2:30 AM and...
5
by: The Plankmeister | last post by:
Ello... Is there a way to recreate the "text-align : justify" behaviour with images? (add to wish list: "image-align : justify") I have a gallery page and would like all the images to properly...
4
by: Chamomile | last post by:
does anyone know if its possible to full-justfy text in a <textarea>? I can do left and right justify and center with a simple style declaration, but can't find any reference anywhere to a full...
55
by: Steve Jorgensen | last post by:
In a recent thread, RKC (correctly, I believe), took issue with my use of multiple parameters in a Property Let procedure to pass dimensional arguments on the basis that, although it works, it's...
14
by: 42 | last post by:
Hi, Stupid question: I keep bumping into the desire to create classes and properties with the same name and the current favored naming conventions aren't automatically differentiating them......
3
by: pecan | last post by:
I've been trying to justify some text: when I align it left or right or centre, it works, but when I align it to justify it ignores me. I've tried overriding the CSS by justifying withing the html...
3
by: vtashore | last post by:
I downloaded Steve Leban's RTF2 control and it works as advertised. Good news! After reading reference material on the RTF standard codes, I have been able to write update queries to universally...
1
by: J.J.Cale | last post by:
The following code works partially. If Justify is set to 0, I see 3 separate lines of text left justified but when I try to right or center justify I only get the first line. It is justified...
1
by: Dude | last post by:
Hi All, I am fairly new to Python programming. I am working on a small Tkinter project and I think I am missing something, maybe you can help. The two lines below is all I have related to the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.