Welcome to WebmasterWorld Guest from 54.166.117.130

Forum Moderators: incrediBILL

Netscape boggles align="right"

   
7:39 am on Apr 25, 2001 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



I have this line of code:

<p align="right"><b>>> Part One</b><br><a href="cb2.html">Part Two</a>

Explorer does just what I expect and creates a nice straight alignment down the right hand side, but Netscape 4.7 does not -- it's jagged by a visible amount.

I found a fix, but it blows my mind. If close the <p> tag, all is well. Looks like it's time to start writing XHTML.

Is this peculiarity part of a bigger issue? Are there other circumstances where NN requires a </p> to get the expected behavior?

Edited by: tedster

8:49 am on Apr 25, 2001 (gmt 0)

10+ Year Member



I believe there was a certain build of netscape (4.02?) that actually crashed if you didnt close the <p> tag :)

I've got into the habit of closing <p> tags but then again I write pidgin HTML.

9:15 am on Apr 25, 2001 (gmt 0)

WebmasterWorld Senior Member chiyo is a WebmasterWorld Top Contributor of All Time 10+ Year Member



It looks like the writing is on the wall for us old time HTML writers. 1,876 custom pages all with unclosed P tags await.

I guess waiting for a script or macro to fix them up for us is beyong hope, considering the different pernutations and combinations. Does anyone know of a HTML tool that automatically edits pages to close P tags? I just cant see, logically, how it would be done.

Could do a mega search on <P> and replace with </P><P> I guess, then add a <P> at the start of each page and table cell and a </P> at the end of each page and table cell but I am sure there will be problems.

Anybody who faces the same problem and has tried such workarounds please let me know before i write off the next 3 months of weekends!

Xoc

2:28 pm on Apr 25, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You should use <p></p> not <P></P>, as xhtml requires lower case. Otherwise you get to do it all again some time later! I believe the html tidy program on the w3 web site will clean up your code for you. [w3.org...]
6:34 pm on Apr 25, 2001 (gmt 0)

WebmasterWorld Senior Member mivox is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Oh jeezis.... My first HTML editor (GoLive Cyberstudio Personal Edition) put </p> tags in every spot they (apparently) belonged.

When I 'upgraded' to Adobe GoLive 5, all the </p> tags showed up as 'orphaned' tags (meaning they had no 'mate', and were useless)... so I *DELETED* almost ALL of the </p> tags in every document I've edited in the past 6 months...

AIGH!!! AIUUGGHHHH!!!! Thanks SO much, Adobe... *grumble*

Xoc

8:49 pm on Apr 25, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



LOL!

Sorry, I sympathize. Most of the HTML editors produce really bad HTML.

The HTML Tidy program, though, will go through and put them back in. There is a Mac interface for it. Combined with a script, it can go through and modify all the pages on a site. I'd suggest getting it to convert to XHTML while you are at it.

I'll see if I can't put together a tool that can be pointed at a web page and fix it up the "right" way.

9:02 pm on Apr 25, 2001 (gmt 0)

WebmasterWorld Senior Member mivox is a WebmasterWorld Top Contributor of All Time 10+ Year Member



The missing </p> is the only problem I've come across with GoLive... It produces validating HTML 4 code with no problem (With 1 exception: it doesn't automatically create 'alt' attributes for images... you gotta remember that one yourself.). I'd assume the next version will "make nice" with the new XHTML standards.

I downloaded the BBedit HTML tidy plug in already, so I'll have to give that a test run, I guess.

 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month