Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Formatting differences between preview and display

by talexb (Canon)
on Sep 26, 2002 at 18:21 UTC ( #200982=monkdiscuss: print w/ replies, xml ) Need Help??

I'm wondering why there are formatting differences between the preview page of a node I wrote today, compare to the way it appears as part of a thread (down near the bottom of the page). Specifically, after each quoted section (using un and i tags), there is a blank line on my preview page that does not appear on the thread page.

This is nit-picky perhaps, but I like my posts to look good. Why the disparity?

--t. alex
but my friends call me T.

Comment on Formatting differences between preview and display
Re: Formatting differences between preview and display
by fglock (Vicar) on Sep 26, 2002 at 18:32 UTC

    At first glance, it looks like you are not opening/closing  <p>paragraphs</p> properly. Maybe the style sheet is compensating for that in some sections (such as in the preview page).

    update: the problem actually was not opening  <p> . Closing  </p> is more-or-less optional.

      ++ to you, great diagnosis. That solved my problem, and from now I'll do the correct XML thing and use opening and closing p tags.

      --t. alex
      but my friends call me T.

      ps Including this node, OF COURSE!!

      Bah, you younglings and your newfangled ideas.

      When I learned HTML, it didn't have such silliness as </p>... :) Actually, I'm not kidding, there really WASN'T a /p tag.

      Seriously, thanks for pointing that out; I've been using <p> as a separator instead of a container for way too long...
      --
      Mike

        I remember too when <P> was a separator. I still do that on PM because it's faster, but use the new way on web pages (and use a validator).
        Actually, I'm not kidding, there really WASN'T a /p tag.

        Heh. Yeah, that was back before there was a BR tag too. In fact, the P tag basically functioned as a BR. But by the time the first HTML RFC was published, BR was ubiquitous and paragraph breaks became paragraphs and were no longer empty elements. Sure, the /P end tag has remained optional but that's just no excuse. ;-)

        Now, if I could just teach myself to write those BRs as <br/>. . .

        -sauoq
        "My two cents aren't worth a dime.";
        
        I hate the P.
        I love the BR.
        In fact, I'm using it right now!
        I don't know why, but I have never liked the P. I like it as a verb... very satisfying. But not as an HTML tag.

        _____________________________________________________
        mojobozo
        word (wrd)
        interj. Slang. Used to express approval or an affirmative response to
        something. Sometimes used with up. Source
      I've always wondered about this too and am guilty of never using </p> tags. Thanks for the clarification. However, regardless of whether you close tags or not the resulting pages should be displayed consistently preview mode or otherwise. Hopefully this will be corrected, or are there reasons for treating the preview mode differently?

      --Jim

Re: Formatting differences between preview and display
by Flexx (Pilgrim) on Sep 28, 2002 at 16:45 UTC

    All of you who "voted for" unclosed <p> and lots of <br> should read the section "Use <br/> Tags VERY Sparsely" of How do I post a question effectively?. It put out clearly what's cool and what's not.

    Unfortunately, Writeup Formatting Tips fails a bit in that respect. Actually it even suggests using single <p> and <br> without a slash... and I'd love to see that corrected, and maybe even a link to more info there...

    So long,
    Flexx

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: monkdiscuss [id://200982]
Approved by tadman
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (15)
As of 2014-09-17 14:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (83 votes), past polls