Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Formatting differences between preview and display

by talexb (Chancellor)
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

Replies are listed 'Best First'.
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.

      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...

        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/>. . .

        "My two cents aren't worth a dime.";
        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).
        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.

        word (wrd)
        interj. Slang. Used to express approval or an affirmative response to
        something. Sometimes used with up. Source

      ++ 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!!

      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?


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,

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2023-09-30 16:34 GMT
Find Nodes?
    Voting Booth?

    No recent polls found