This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 17119 - CSS text-align:justify; with HTML <br />
Summary: CSS text-align:justify; with HTML <br />
Status: NEW
Alias: None
Product: CSS
Classification: Unclassified
Component: Text (show other bugs)
Version: unspecified
Hardware: Other other
: P3 enhancement
Target Milestone: ---
Assignee: fantasai
QA Contact: public-css-bugzilla
Depends on:
Reported: 2012-05-20 01:19 UTC by contributor
Modified: 2012-05-25 02:08 UTC (History)
5 users (show)

See Also:


Description contributor 2012-05-20 01:19:29 UTC

CSS text-align:justify; and html <br /> do not work well together. This is
less a bug than a nuisance. When a browser sees a <br /> it breaks the line
there and left aligns the line it is on, which is normally not the desired
result. for the <br /> we need something like either <br wrap='yes'> or <br
style='wrap:yes'>. The work around to this problem is to put lines between 
<span class='word-spacing: ,,,> </span> elements, but that is ugly.

Posted from:
User agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0
Comment 1 Jonathon VS 2012-05-25 02:07:10 UTC
This is more of a stylistic issue than an HTML issue, but it is a valid concern. One suggestion may be to adopt the model my old WordPerfect did back in the day: have two different values of text-align in CSS, "justify" and "full", to accommodate both preferences.