Good morning everyone,
Sometimes I like to use <pre> to give a certain piece of text that extra oomph, to emphasize it's a bit different from the other text. As you know, <pre> is meant to add text without wrapping it, but that's a problem right now.
Is there a tag that looks like <pre>'s formatting and actually wraps the lines?
I'm sure it must exist, but I have no clue what this type of object would be called...
Greetings, Jelle De Loecker
On Mon, Feb 9, 2009 at 7:03 PM, Jelle De Loecker skerit@kipdola.com wrote:
Good morning everyone,
Sometimes I like to use <pre> to give a certain piece of text that extra oomph, to emphasize it's a bit different from the other text. As you know, <pre> is meant to add text without wrapping it, but that's a problem right now.
Is there a tag that looks like <pre>'s formatting and actually wraps the lines?
I'm sure it must exist, but I have no clue what this type of object would be called...
Greetings, Jelle De Loecker
Use a div box or table and style it accordingly: eg: <div style="width:99.5%; margin:0 auto; background-color:#EE17C3; border:1px dashed #0000FF">BOX Contents</div>
On Mon, Feb 9, 2009 at 3:13 AM, K. Peachey p858snake@yahoo.com.au wrote:
Use a div box or table and style it accordingly: eg: <div style="width:99.5%; margin:0 auto; background-color:#EE17C3; border:1px dashed #0000FF">BOX Contents</div>
On Mon, Feb 9, 2009 at 4:41 AM, Katharina Wolkwitz wolkwitz@fh-swf.de wrote:
You could try the <tt> </tt>-Tag...
No no no, just use: <pre style="white-space:normal;"> BOX Contents </pre>
This is the opposite of "white-space:nowrap;". The <pre> tag is unique in having this attribute by default.
—C.W.
I'm sure there's a template that you could use (on wikipedia) or make ( on your own private wiki) which wraps your text in a div with some special CSS.
The pre tag means preformatted, which is why unlike other HTML tags it pays attention to whitespace like tabs new lines and more than one consecutive space. Using a div with a background color, border and padding would provide the wrapping you want plus any style you are after.
To integrate the HTML code into an article or template you will need to use the <nowiki> tags around the HTML tags.
- Trevor
Sent from my iPod
On Feb 9, 2009, at 1:03 AM, Jelle De Loecker skerit@kipdola.com wrote:
Good morning everyone,
Sometimes I like to use <pre> to give a certain piece of text that extra oomph, to emphasize it's a bit different from the other text. As you know, <pre> is meant to add text without wrapping it, but that's a problem right now.
Is there a tag that looks like <pre>'s formatting and actually wraps the lines?
I'm sure it must exist, but I have no clue what this type of object would be called...
Greetings, Jelle De Loecker
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Trevor Parscal wrote:
To integrate the HTML code into an article or template you will need to use the <nowiki> tags around the HTML tags.
- Trevor
Sorry Trevor, that's simply false. HTML tags are part of wikitext (if allowed). A nowikied tag is outputted literal *to the user* (htmlescaped), not to the html source.
On 2/9/09 8:12 AM, Platonides wrote:
Trevor Parscal wrote:
To integrate the HTML code into an article or template you will need to use the<nowiki> tags around the HTML tags.
- Trevor
Sorry Trevor, that's simply false. HTML tags are part of wikitext (if allowed). A nowikied tag is outputted literal *to the user* (htmlescaped), not to the html source.
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
I promise to stop replying to email at 1:22am :(
- Trevor
On Mon, Feb 9, 2009 at 11:26 AM, Trevor Parscal tparscal@wikimedia.org wrote:
I promise to stop replying to email at 1:22am :(
You could blame it all on the iPod.
—C.W.
Hi Jelle!
You could try the <tt> </tt>-Tag...
Greetings Katharina
Jelle De Loecker schrieb am 09.02.2009 10:03:
Good morning everyone,
Sometimes I like to use <pre> to give a certain piece of text that extra oomph, to emphasize it's a bit different from the other text. As you know, <pre> is meant to add text without wrapping it, but that's a problem right now.
Is there a tag that looks like <pre>'s formatting and actually wraps the lines?
I'm sure it must exist, but I have no clue what this type of object would be called...
Greetings, Jelle De Loecker
mediawiki-l@lists.wikimedia.org