Closed
Bug 274639
Opened 20 years ago
Closed 20 years ago
Add class for wrapping <code> or make all <code> wrap
Categories
(www.mozilla.org :: General, enhancement)
www.mozilla.org
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: hsivonen, Assigned: fantasai.bugs)
References
()
Details
The site-wide style sheet makes <code> non-wrapping. Often the horizontal
scrollbar is worse than wrapping. For wide <code> a class that permits wrapping
is needed (unless all <code> is reverted to wrapping).
I've used
.wrap {
white-space: wrap;
}
in local style. See http://www.mozilla.org/docs/web-developer/faq.html| Reporter | ||
Comment 1•20 years ago
|
||
The name of the class could be obfuscated to make it look non-presentational.
In those cases, I think it would be better if one used a <pre>, then wrapped the code a bit tighter. If we let the UA do the wrapping, it could wrap in awkward places. E.g. for a doctype, it's nicer to wrap between the strings rather than at breakpoints within them. Henri, do you think that would be sufficient or do you really want a 'long' class for <code> elements?
Assignee: mozilla.webmaster → fantasai.bugs
| Reporter | ||
Comment 3•20 years ago
|
||
Oops that should have been white-space: normal; . But yes, I really would like to have the class.
fix checked in, use class="long"
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Updated•16 years ago
|
Product: mozilla.org → Websites
Updated•12 years ago
|
Component: www.mozilla.org → General
Product: Websites → www.mozilla.org
You need to log in
before you can comment on or make changes to this bug.
Description
•