|
Posted by Chris F.A. Johnson on 02/14/07 21:50
On 2007-02-14, robert maas, see http://tinyurl.com/uh3t wrote:
>> From: "Chris F.A. Johnson" <cfajohn...@gmail.com>
>> Or use a new <p> with padding-top and margin-top set to 0.
>
> Let me see if I can find the documentation for that ...
><http://www.w3.org/TR/CSS21/box.html>
> shows only how to do it in CSS, not directly in the element, so
> that's useless for me because not all browsers support CSS, in
> particular the only browser available to me for testing over VT100
> dialup (lynx) into unix shell doesn't support CSS.
><http://www.thescripts.com/forum/thread154512.html>
> also refers to CSS, but at least it shows doing something directly
> in the individual element, so let me give it a try ... No, it
> doesn't work. Here's the HTML source:
>
> Anything I haven't yet included might be found
><a href="http://merd.sourceforge.net/pixel/language-study/syntax-across-languages.html">here</a>
> in much terser form but still perhaps useful if you then use Google to find
> the documentation for the keyword cited there.
><p style="margin-top: 0; padding-top: 0"></p>
><em>**(I don't want a blank line here, just a forced newline.)**</em>
> Also, the original perl cookbook sourcecode and partial translations to
> several other languages can be found
><a href="http://pleac.sourceforge.net/">here</a>,
> ..
>
> And here's how it appears on-screen.
>
> Anything I haven't yet included might be found here in much terser
> form but still perhaps useful if you then use Google to find the
> documentation for the keyword cited there.
>
> **(I don't want a blank line here, just a forced newline.)** Also, the
> original perl cookbook sourcecode and partial translations to several
> other languages can be found here, ...
>
> So what do I need to do there to get rid of that blank line?
Use <br> or <br /> instead of <p>.
> Also is there any way to prevent the blank line after the pre element here?
>
> .. So suppose you
> enter two numbers, with a space between them, such as</p>
><pre>
> 42 69
></pre>
<pre>
42 69</pre>
> **(I do *not* want a blank line here!!)**
> on a single line of input?
> Lisp will read the 42, and print it out on a new line.
>
>> > by itself is >.
>
> That's disgusting. I've tried to purge my documents of all
> accidental use of that crock, using > whenever I want that
> character to *appear* in the display of the WebPage.
Why? There is no good reason to use > instead of >.
--
Chris F.A. Johnson <http://cfaj.freeshell.org>
===================================================================
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
[Back to original message]
|