We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36426
    • 197 Posts
    Hi I hope some one can help. For some reason this page is miss behaving and the css layout doesn't match the other pages: http://www.insideyork.co.uk/restaurants/bars-and-bistros.html

    Yet on all other pages on the site with the same template, it's working nicely... Can anyone see what is throwing it out here?

    Thanks for any help
      Yorkshire UK based hosting provider: https://www.simulant.uk
      • 19369
      • 1,098 Posts
      The pages are not the same. In the other pages you have the following structure:
      <div id="outer">
      	<div id="inner">
      		<div id="left"></div>
      		<div id="middle"></div>
      		<div id="right"></div>
      		<div id="clearfooter"></div>
      		<div id="header"></div>
      		<br class="c4">
      		<div id="footer"></div>
      	</div>
      </div>


      In the page that doesn't work you have the following structure:
      <div id="outer">
      	<div id="inner">
      		<div id="left"></div>
      		<div id="middle">
      			<div id="middle-inner">
      				<div id="content">
      					<div class="post">
      						<div id="right"></div>
      						<div id="header"></div>
      						<div id="footer"></div>
      					</div>
      				</div>
      			</div>
      		</div>
      	</div>
      </div>


      As you can see header, footer and right column are in the wrong place.

      Or, at least, this is what I see with Firebug. My first guess is that you have an unclosed tag somewhere. I can't spot exactly where because there are too many invalid tags in the page. Remove the invalid tags and the problem will probably go away. [ed. note: microcipcip last edited this post 14 years, 3 months ago.]
        • 36426
        • 197 Posts
        Hi thanks very much for your response. The pages all use the same template. So it's the sub pages ditto is generating throwing up this problem. Possibly one of them is closing or opening an incomplete div?? The problem is I can't find which ditto result page is causing this...

        Any ideas?
          Yorkshire UK based hosting provider: https://www.simulant.uk
          • 19369
          • 1,098 Posts
          First, try to isolate the problem. Disable ditto and see if this fix the issue. If it does, then try to strip the html with PHx.

          For example you can try with this PHx extension that strip html tags and makes text shorter:
          snippet name: phx:character_limit
          snippet code:
          <?php
          if (strlen($output) > $options) {
                $output = $modx->stripTags($output, '');
                $output_cutted = substr($output, 0, $options);
                $last_space = strrpos($output_cutted, " ");
                $output = substr($output_cutted, 0, $last_space) . "";
                } else {
                $output = $modx->stripTags($output, ''); 
                }
                return $output;
          ?>


          Usage:
          [+content:character_limit=`260`+]...