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
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-20 01:19 UTC by contributor
Modified: 2012-05-25 02:08 UTC (History)
5 users (show)

See Also:


Attachments

Description contributor 2012-05-20 01:19:29 UTC
Specification: http://www.w3.org/TR/2012/WD-html5-20120329/
Multipage: http://www.whatwg.org/C#top
Complete: http://www.whatwg.org/c#top

Comment:
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.

Howard_Cary_Morris@hotmail.com

Posted from: 98.66.7.23
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.