HRWiki:Sandbox

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(gotta stop for tonight)
(easy)
Line 33: Line 33:
No matter what tags you surround the lines with, unless you do something to the lines themselves they will be seen by the UA as unformatted. The only exception is pre, which tells the UA the text is preformatted and to present as is. The wiki turns a return (or an Enter) between lines as a closing and re-opening of a paragraph element, that's why that works.  You could use the style attribute on pre to undo the inherent style the wiki adds to pre, if that visual formatting isn't desired.
No matter what tags you surround the lines with, unless you do something to the lines themselves they will be seen by the UA as unformatted. The only exception is pre, which tells the UA the text is preformatted and to present as is. The wiki turns a return (or an Enter) between lines as a closing and re-opening of a paragraph element, that's why that works.  You could use the style attribute on pre to undo the inherent style the wiki adds to pre, if that visual formatting isn't desired.
-
<pre style="padding: inherit; border: 0; background-color: transparent; line-height: inherit; font-family: sans-serif; font-size; inherit;">
+
<pre style="white-space: normal; padding: inherit; border: 0; background-color: transparent; line-height: inherit; font-family: sans-serif; font-size; inherit;">
newline
newline
newline
newline
Line 47: Line 47:
:Still, font is weird. Not the same. I'm referring to the default style sheet and using multiple browsers too. Grr....
:Still, font is weird. Not the same. I'm referring to the default style sheet and using multiple browsers too. Grr....
::Yeah, but now you lose word wrap... {{User:DeFender1031/sig}} 03:50, 7 August 2007 (UTC)
::Yeah, but now you lose word wrap... {{User:DeFender1031/sig}} 03:50, 7 August 2007 (UTC)
-
 
+
:::That's easy enough to reset in CSS.
::Here's the problem. In Opera (newest built on Windows) font-family: inherit; results in monospace. I can't think of a darn reason why that should be so, perhaps it's a bug in the latest build. Seems unlikely. Anyway, I yield to wiser minds here.
::Here's the problem. In Opera (newest built on Windows) font-family: inherit; results in monospace. I can't think of a darn reason why that should be so, perhaps it's a bug in the latest build. Seems unlikely. Anyway, I yield to wiser minds here.

Revision as of 03:54, 7 August 2007

<tag>

  • newline
  • newline
  • newline
newline
newline
newline
  1. newline
  2. newline
  3. newline

newline<br />
newline<br />
newline<br />
newline newline </tag>

what tag do i put around this so that each "newline" is on its own line? — Defender1031*Talk 21:03, 6 August 2007 (UTC)

newline
newline
newline
newline
newline
newline
newline
newline

this is not what you meant, is it?

No matter what tags you surround the lines with, unless you do something to the lines themselves they will be seen by the UA as unformatted. The only exception is pre, which tells the UA the text is preformatted and to present as is. The wiki turns a return (or an Enter) between lines as a closing and re-opening of a paragraph element, that's why that works. You could use the style attribute on pre to undo the inherent style the wiki adds to pre, if that visual formatting isn't desired.

newline
newline
newline
newline
No matter
what you do,
this is weird.
Who'd knew?

Good job, Qermaq, you get good prize. Ding!

Still, font is weird. Not the same. I'm referring to the default style sheet and using multiple browsers too. Grr....
Yeah, but now you lose word wrap... — Defender1031*Talk 03:50, 7 August 2007 (UTC)
That's easy enough to reset in CSS.
Here's the problem. In Opera (newest built on Windows) font-family: inherit; results in monospace. I can't think of a darn reason why that should be so, perhaps it's a bug in the latest build. Seems unlikely. Anyway, I yield to wiser minds here.
Personal tools