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

Re: Formatting differences between preview and display

by fglock (Vicar)
on Sep 26, 2002 at 18:32 UTC ( #200987=note: print w/ replies, xml ) Need Help??


in reply to Formatting differences between preview and display

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.


Comment on Re: Formatting differences between preview and display
Select or Download Code
Re: Re: Formatting differences between preview and display
by talexb (Canon) on Sep 26, 2002 at 18:41 UTC

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

Re: Re: Formatting differences between preview and display
by RMGir (Prior) on Sep 26, 2002 at 19:18 UTC

    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.";
      
        Or even better <br />. :-)

        Makeshifts last the longest.

      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
        Funny, I'm the opposite. <P> is a true markup tag in spirit while <br> is layout oriented, and since I have a metadata mania and try to keep data in machine consumption suitable form whenever possible I don't tend to use the latter much.

        Makeshifts last the longest.

Re: Re: Formatting differences between preview and display
by jlongino (Parson) on Sep 29, 2002 at 17:17 UTC
    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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2014-12-27 20:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls