qim
September 5, 2015, 9:03am
1
I added the following code to an existing page and the appropriate code to the css. It came from another page that works without any problem.
However, in this page it does not validate and screws up the page
The new code is
<div id="converter">
<div class="hiddenlink">
<div style="width:160px; background-color:#FFFFDB;border:2px solid #888;text-align:center;margin:0px;padding:0px">
<div style="background-color:#CD853F;border-bottom:1px solid #888;width:100%;margin:0px;padding:0px;align:center;text-align:center;"><a class="Vlabel" style="font-size:12px!important; line-height:16px!important;font-family: arial;text-decoration:none;color:#132105;margin-bottom:6px;"><b>Currency Calculator</b></a></div>
<script type="text/javascript" src="http://www.fx-rate.net/converter.php?layout=vertical&amount=&tcolor=132105&default_pair=JPY/GBP"> </script></div>
<!-- End of Currency Converter script --></div>
<div id="mask"></div>
</div>
<!-- close converter --></div>
The problem page is http://pintotours.net/TEST/IbisKyotoStation.html
Thank you
SamA74
September 5, 2015, 9:06am
2
It says you have a stray end tag:
Stray end tag div.
From line 598, column 5; to line 598, column 10
Find and remove.
Edit
It is the one commented as Close maincontainer
</div><!-- close maincontainer -->
1 Like
qim
September 5, 2015, 9:10am
3
Hi, thanks
I had actually just corrected the problem by deleting one of the closing divs in the converter,
But the question remains: how come in the “good” page with the same code that closing div is accepted?
If you take the converter code out altogether there is no problem,
SamA74
September 5, 2015, 9:14am
4
Well the pages are not identical.
The code you posted first has 5 opening <div>
s and 6 closing. The page that validates must have one more opening tag somewhere before that code.
1 Like
qim
September 5, 2015, 9:17am
5
The “Good” page also has 5 opening and 6 closing which is obviously wrong. Yet, it validates, probably because there is a missing div somewhere…
…and I thought I was going to have a quiet day!
Thanks, I will look for the mistake in the “good” page.
RESOLVED! Temporary links have been retired
system
Closed
December 5, 2015, 4:17pm
6
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.