6 Replies Latest reply on Aug 30, 2011 12:09 PM by Nikolas1000

    Display problem with IE only

    Sally_C Level 1

      I am trying to stack a couple of things in a side div which worked fine until yesterday when I went to add one more thing - a 120x75 jpg.   It looks fine in FF, Chrome and Safari but IE lets the item below it run up beside it which looks bad plus this pushes div above it into the pages center image.

       

      I've tried everything I can think of but nothing makes IE render it like the other three.   I would really appreciate some help.

       

      The div where I'm trying to stack the items is below and it's the top item image that's seemed to creating the problem.  Prior to putting that in even IE was happy.

      <div id="matt">
      <p><a href="#Ustream"><img src="../images/MarineBand68_120x75.jpg" width="120" height="75" alt="Listen to Holland Marine Band Channel 68 " /></a></p>
      <p><script type="text/javascript"><!--
      google_ad_client = "ca-pub-8244489476989361";
      /* SGH_PHPSideSmall */
      google_ad_slot = "6286708257";
      google_ad_width = 120;
      google_ad_height = 240;
      //-->
      </script>
      <script type="text/javascript"
      src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
      </script></p>
       <p><a href="http://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=KMIHOLLA1"><img src="http://banners.wunderground.com/cgi-bin/banner/ban/wxBanner?bannertype=wxstnsticker&weatherstationcount=KMIHOLLA1" height="160" width="160" border="0" alt="Weather Underground PWS KMIHOLLA1" /></a></p>
      <!--end matt--></div>
      

       

      And you can view the page at http://www.spyglasshill.com/Webcam/Default.htm.

       

      (Btw IE also seems to be ignoring that fact that the Marine Band autoplay=false and starts playing it when the page loads.  I've got to fix that yet but you can turn it off at the bottom of the page. Sorry if that's bothersome.)

       

      Thanks so much for any help.

        • 1. Re: Display problem with IE only
          Sally_C Level 1

          Got it.  For some reason IE requires not one, but two <p></p> after the insertion of the new image.  That's all it took, though who knows why only IE and only for that item to stack properly.

          • 2. Re: Display problem with IE only
            MurraySummers Level 8

            Hmm - that certainly implies that something else is going on.  As far as I know there is no such requirement in IE or any other browser.  But I have not examined your issue in depth, so I can't say for sure what's really happening....

            • 3. Re: Display problem with IE only
              Nikolas1000 Level 1

              if someone can help me out with this, its quite simple but I can't seem to get it to work..http://www.basishost.com/hosting/

               

              Basically,  this is the code I have for now, the issue is if I have 0 product or  items, I don't want the sorting option to show up on the page,    from  the code below, what line can I add tosay that if there is no products  in a category, not to show the SORT feature.

               

              thanks in advance if anyone can help.

               


              {if isset($orderby) AND isset($orderway)}
              <!-- Sort products -->
              {if isset($smarty.get.id_category) && $smarty.get.id_category}
                 {assign var='request' value=$link->getPaginationLink('category', $category, false, true)}
              {elseif isset($smarty.get.id_manufacturer) && $smarty.get.id_manufacturer}
                 {assign var='request' value=$link->getPaginationLink('manufacturer', $manufacturer, false, true)}
              {elseif isset($smarty.get.id_supplier) && $smarty.get.id_supplier}
                 {assign var='request' value=$link->getPaginationLink('supplier', $supplier, false, true)}
              {else}
                 {assign var='request' value=$link->getPaginationLink(false, false, false, true)}
              {/if}
              <form id="productsSortForm" action="{$request|escape:'htmlall':'UTF-8'}">
                 <select id="selectPrductSort" onchange="document.location.href = $(this).val();">
                    <option  value="{$link->addSortDetails($request, $orderbydefault,  $orderwaydefault)|escape:'htmlall':'UTF-8'}" {if $orderby eq  $orderbydefault}selected="selected"{/if}>{l s='--'}</option>
                    {if !$PS_CATALOG_MODE}
                    <option  value="{$link->addSortDetails($request, 'price',  'asc')|escape:'htmlall':'UTF-8'}" {if $orderby eq 'price' AND $orderway  eq 'asc'}selected="selected"{/if}>{l s='Price: lowest  first'}</option>
                    <option  value="{$link->addSortDetails($request, 'price',  'desc')|escape:'htmlall':'UTF-8'}" {if $orderby eq 'price' AND $orderway  eq 'desc'}selected="selected"{/if}>{l s='Price: highest  first'}</option>
                    {/if}
                    <option  value="{$link->addSortDetails($request, 'name',  'asc')|escape:'htmlall':'UTF-8'}" {if $orderby eq 'name' AND $orderway  eq 'asc'}selected="selected"{/if}>{l s='Product Name: A to  Z'}</option>
                    <option  value="{$link->addSortDetails($request, 'name',  'desc')|escape:'htmlall':'UTF-8'}" {if $orderby eq 'name' AND $orderway  eq 'desc'}selected="selected"{/if}>{l s='Product Name: Z to  A'}</option>
                    {if !$PS_CATALOG_MODE}
                    <option  value="{$link->addSortDetails($request, 'quantity',  'desc')|escape:'htmlall':'UTF-8'}" {if $orderby eq 'quantity' AND  $orderway eq 'desc'}selected="selected"{/if}>{l s='In-stock  first'}</option>
                    {/if}
                 </select>
                 <label for="selectPrductSort">{l s='Sort by'}</label>
              </form>
              <!-- /Sort products -->
              {/if}

              • 4. Re: Display problem with IE only
                osgood_ Level 8

                Just add the below php code around the <form></form>, where the recordset 'rs_purchase' and row 'products' is replaced with the recordset and row name in your database which stores the number of products available.

                 

                <?php if($row_rs_purchase['products'] > 0) { ?>

                 

                <?php } ?>

                • 5. Re: Display problem with IE only
                  MurraySummers Level 8

                  Why are you posting that in this thread?

                  • 6. Re: Display problem with IE only
                    Nikolas1000 Level 1

                    sorry if I misunderstood