Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Dariune 21 posts 40 karma points
    Apr 03, 2011 @ 22:38
    Dariune
    0

    ie 8 not showing at all

    Hi all

    Im new to Umbraco so i might be doing something daft but ...

     

    Ive created a site and implemented Umbraco. The default.aspx works fine in firefox and ie8 (except the google maps but thats not your problem) but when i click on a link to the second page when in ie8 with compatibility view switched on it doesnt show anything.

     

    The page is there because when i view source it shows the code and when i highlight the page the outer div highlights but there is nothing visible.

    Does anyone have any idea why this might be?

    Thanks

    Dariune

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Apr 03, 2011 @ 22:51
    Jan Skovgaard
    0

    Hi Dariune

    Are you using absolute or relative references to your CSS and script files for instance?

    Could you perhaps post a snippet of the code in your master template?

    /Jan

  • Dariune 21 posts 40 karma points
    Apr 03, 2011 @ 23:07
    Dariune
    0

    Hi Jan

    Thanks for the quick reply.

    Below is the code for the page which isnt working (its two seporate Master Pages.) 

    <%@ Master Language="C#" MasterPageFile="~/umbraco/masterpages/default.master" AutoEventWireup="true" %>



    <asp:Content ContentPlaceHolderID="ContentPlaceHolderDefault" runat="server">
     
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Johns Hair Fashions</title>
     
      <link href="/css/MainStyle.css" rel="stylesheet" type="text/css" />
      <script src="../curvycorners.js" type="text/javascript"></script>

      <meta name="description" content="Johns Hair Fashions" />
      <meta name="keywords" content="Hair, Fashions, John, Hair dressers, barber, haircut, trim, styling" />
      <meta name="author" content="Oakman Design" />
      <meta name="copyright" content="Johns Hair Fashions 2011" />

    </head>

        <form id="form1" runat="server">
        <div>
           
       
        <div id="outer">
       
        <div id="header">
        <a href="/"><p class="HomeBut"></p></a>
        <a href="/prices.aspx"><p class="PriceBut"></p></a>
      </div>


          <div id="content">
          <div id="leftContent">
        <div id="innercontent">
         
          <asp:ContentPlaceHolder id="Content" runat="server">
            <umbraco:Item field="content" runat="server"></umbraco:Item>
          </asp:ContentPlaceHolder>

        </div>

        <div id="ladyleft2"></div>
        </div>
     
      <div id="prices">
        <asp:ContentPlaceHolder id="Prices" runat="server">
          <umbraco:Item field="prices" runat="server"></umbraco:Item>
        </asp:ContentPlaceHolder>
      </div>

       


     
          </div><!--End content Div-->
         
          <div id="footer">
            <p class="oakman">Site by <a href="http://www.oakmandesign.co.uk">Oakman Design</a></p>
            <p class="footText">
                Jons Hair Fashions<br />
                Tel: 01342823110<br />
                64 Maypole Road    <br />
                Ashurst Wood<br />
                West Sussex
            </p>
           
          </div>

        </div><!--End outer Div-->

        </div>
        </form>
    </body>
    </html>


     
    </asp:Content>

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Apr 03, 2011 @ 23:19
    Jan Skovgaard
    0

    Hi Daruine

    At a first sight the above looks allright to me.

    Is the site online somewhere?

    The above is only one template but I guess you have made a contentplaceholder, which is used in an inherited template somewhere?

    But I don't think it's your template structure that is the problem, Then the problem would have showed in other browsers as well I guess.

    Have you tried to run your site through a validator to ensure that there is no bad markup, unclosed tags etc.? (Both HTML and CSS should be validated).

    It's always the small things that are hard to see that causes the most havoc :-)

    /Jan

  • Dariune 21 posts 40 karma points
    Apr 04, 2011 @ 19:38
    Dariune
    0

    Hi

    Ive fixed it.

    After runing thep age through the validator i found that i had indeed left out a few vital bits of markup., Doh

     

    Thanks for your help

    Dariune

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Apr 04, 2011 @ 19:41
    Jan Skovgaard
    0

    Hi Dariune

    Hehe, yes it can certainly break havoc if you forget to close elements etc.

    If you ever encounter your layouts to act up due to emtpy elements for some reason you can fix it by adding either <xsl:text> </xsl:text> or <xsl:comment /> - this ensures that the empty elements does not collapse, which results in the pages acting up.

    Just a little tip you can probably use further on on your Umbraco journey :-)

    /Jan

Please Sign in or register to post replies

Write your reply to:

Draft