rbelow / blueprintcss

Automatically exported from code.google.com/p/blueprintcss
1 stars 0 forks source link

code element in paragraph fails to wrap in IE 7 #65

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
A paragraph containing code elements will stop wrapping if one of those 
elements falls at the end 
of a line on IE 7, but not Safari or Firefox. This caused by the following 
style rule in typography.css:

pre,code    { margin: 1.5em 0; white-space: pre; }

Defining "code" in this way doesn't encourage what I understand as proper usage 
of the tags, 
though I'm sure what the standards prescribe. (In Markdown, inline code is 
translated to a code 
element and code blocks are translated to a code nested within a pre.) But if 
you want to continue 
to have code act as a pre, you could fix IE7's wrapping with the following 
rule, so long as the block 
of text is contained in a paragraph:

p code { white-space: normal; } 

Original issue reported on code.google.com by n8han.ha...@gmail.com on 7 Dec 2007 at 5:34

GoogleCodeExporter commented 8 years ago
Thanks. This should now be fixed for the next release. Check out the SVN to see 
the changes.

Original comment by ola...@gmail.com on 13 Jan 2008 at 3:15