[CS-FSLUG] html fine in Linux, but one word per line in "Internet Explorer"

Davo Smith christiansource at davosmith.co.uk
Tue Sep 25 04:43:14 CDT 2012


Personally, I now use PHPStorm for web development (it has a related
'WebStorm' application for HTML editing), but it is quite pricey (if
you're not doing full-time professional wed development).

You might want to see if a text editor, such as Kate (for KDE) or
Notepad++ (for Windows), with syntax highlighting might help, or maybe
something like Bluefish (Linux) or Kompozer (cross-platform).

Or even an official online checker like this: http://validator.w3.org/
(although that really doesn't like your page - it is very pedantic
about every element of the HTML standard).

Davo

On Tue, Sep 25, 2012 at 10:09 AM,  <davidm at hisfeet.net> wrote:
> You are quite right!  I allowed my self frustration, and got to working on
> the wrong file.  When I went to the right file,with your help I quuickly
> found the error, and corrected it.  Now it seems to work smoothly.  Thank
> you brother.
>
> By the way, can you recommend a good "syntax checker" for html files? I've
> got a lot of files, that play well in Firefox, but to check them in
> Windows I have to use VirtualBox with IE.  Or maybe that's the best way
> anyway.  Aside from that sort of situation, I don't usually let Windows
> out of it's cage.
>
> Dave MCM
>
>
>
>
>
>> If I do 'view source' on the original link you sent through, none of
>> the code you've posted below actually appears.
>>
>> What I can see is this:
>>
>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
>> <HTML>
>> <HEAD>
>> ... (skipped for brevity) ...
>> </HEAD>
>> <!--
>> <BODY LANG="en-US" TEXT="#000000" LINK="#0000ff" DIR="LTR">
>> -->
>> <BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#800080"
>> background="pics/back1.jpg">
>> <DIV TYPE=HEADER>
>>       <P STYLE="margin-right: 0.25in; margin-bottom: 0.06in"><SPAN
>> ID="Frame1" DIR="LTR" STYLE="position: absolute; top: 0in; left: 0in;
>> width: 0.26in; height: 0.15in; border: none; padding: 0in; background:
>> #ffffff">                         <SDFIELD TYPE=DATETIME
>> SDNUM="1033;1033;MM\/DD\/YY">07/09/11</SDFIELD></P>
>> </DIV>
>>
>> For it to be correct HTML, you need to change the last section to
>> either look like this:
>>
>> <DIV TYPE=HEADER>
>>       <P STYLE="margin-right: 0.25in; margin-bottom: 0.06in"><SPAN
>> ID="Frame1" DIR="LTR" STYLE="position: absolute; top: 0in; left: 0in;
>> width: 0.26in; height: 0.15in; border: none; padding: 0in; background:
>> #ffffff">        </SPAN>                 <SDFIELD TYPE=DATETIME
>> SDNUM="1033;1033;MM\/DD\/YY">07/09/11</SDFIELD></P>
>> </DIV>
>>
>> (with the '</SPAN>' added just before the '<SDFIELD ... ' section)
>>
>> OR you need to change it to look like this:
>>
>> <DIV TYPE=HEADER>
>>       <P STYLE="margin-right: 0.25in; margin-bottom: 0.06in"><SPAN
>> ID="Frame1" DIR="LTR" STYLE="position: absolute; top: 0in; left: 0in;
>> width: 0.26in; height: 0.15in; border: none; padding: 0in; background:
>> #ffffff">                         <SDFIELD TYPE=DATETIME
>> SDNUM="1033;1033;MM\/DD\/YY">07/09/11</SDFIELD> </SPAN> </P>
>> </DIV>
>>
>> (with the '</SPAN>' added just after the '</SDFIELD>' tag).
>>
>> Which way around you do it depends on what the SPAN was trying to
>> achieve in the first place - if you don't know, then I'd guess option
>> 2 is the right one.
>>
>> Davo
>>
>> On Tue, Sep 25, 2012 at 9:38 AM,  <davidm at hisfeet.net> wrote:
>>> You are probably right, and I am jujst not understanding.  So far as I
>>> can
>>> see the only "span" in the header of that file is "colspan" in the
>>> following set of lines:
>>>
>>> <div align="center">
>>> <table border="0">
>>> <tbody><tr><td colspan="3">
>>> <center><h1>"Harvesting Harvesters"</h1></center>
>>> <center><img src="fishlive.gif" alt="Christian site."></center>
>>> <!-- Place your header in H4 below -->
>>>
>>> Or is the error in the index file:index2.php ???
>>>
>>> What should the Span  entry look like?
>>>
>>> Dave MCM
>>>
>>>
>>>
>>>
>>>> You have an unterminated SPAN element in the 'header' div:
>>>>
>>>> <DIV TYPE=HEADER>
>>>>       <P STYLE="margin-right: 0.25in; margin-bottom: 0.06in"><SPAN
>>>> ID="Frame1" DIR="LTR" STYLE="position: absolute; top: 0in; left: 0in;
>>>> width: 0.26in; height: 0.15in; border: none; padding: 0in; background:
>>>> #ffffff">                         <SDFIELD TYPE=DATETIME
>>>> SDNUM="1033;1033;MM\/DD\/YY">07/09/11</SDFIELD></P>
>>>> </DIV>
>>>>
>>>> i.e.
>>>> Start DIV
>>>> Start P
>>>> Start SPAN - no end SPAN ( </SPAN> )
>>>> Start + End SDFIELD
>>>> End P
>>>> End DIV
>>>>
>>>> I'm not sure whether the  </SPAN> is supposed to be before or after
>>>> the <SDFIELD> section, but it certainly needs to close before the </P>
>>>> tag.
>>>>
>>>> Firefox + Konqueror have managed to take a best-guess and display it
>>>> as intended, IE is displaying it a bit more literally than the others.
>>>>
>>>> Davo
>>>>
>>>> On Tue, Sep 25, 2012 at 7:26 AM,  <davidm at hisfeet.net> wrote:
>>>>> I edited an html file in Linux, and it show just fine Firefox, or in
>>>>> Konqueror.  But in Windows using Internet explorer it comes out
>>>>> showing
>>>>> only one word per lione.  Makes iot almost impossible to read.  What
>>>>> can
>>>>> I
>>>>> do?
>>>>>
>>>>> Hope spomeone can help me with this, I've just sent a letter using
>>>>> some
>>>>> links to the affected file, but I can't see anything wrong with the
>>>>> "source" reading.  The file is:http://www.hisfeet.net/debt.html
>>>>>
>>>>> Dave McMullen
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> ChristianSource FSLUG mailing list
>>>>> Christiansource at ofb.biz
>>>>> http://cs.uninetsolutions.com
>>>>
>>>> _______________________________________________
>>>> ChristianSource FSLUG mailing list
>>>> Christiansource at ofb.biz
>>>> http://cs.uninetsolutions.com
>>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> ChristianSource FSLUG mailing list
>>> Christiansource at ofb.biz
>>> http://cs.uninetsolutions.com
>>
>> _______________________________________________
>> ChristianSource FSLUG mailing list
>> Christiansource at ofb.biz
>> http://cs.uninetsolutions.com
>>
>
>
>
> _______________________________________________
> ChristianSource FSLUG mailing list
> Christiansource at ofb.biz
> http://cs.uninetsolutions.com




More information about the Christiansource mailing list