More in this section

Forums / Bugs & Issues / Master Page / CSS - linking issue.

Master Page / CSS - linking issue.

3 posts, 0 answered
  1. Scott
    Scott avatar
    28 posts
    Registered:
    12 Nov 2010
    05 Apr 2011
    Link to this post
    Hello

    I am having problems getting my (.master -page) to see my css files. I've tried a couple of approaches:

    1.) Adding the .css to the 'Global' directory - did not work
    2.) Using the CSS Widget - did not work
    3.) Calling the .css in the HTML (as suggested in the Designers Guide.PDF) - BELOW - not working..


    Here is what I have:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      
     
    <head><title></title>
     
    <link href="/InfoRetail/WWW/WebsiteTemplates/InfoRetail/includes/css/reset.css" rel="stylesheet" />
    <link href="/InfoRetail/WWW/Sitefinity/WebsiteTemplates/InfoRetail/includes/inforetail.css" rel="stylesheet" />
     
    </head>

    I am also experiencing an issue with my (.master) pages not showing up in the interface when browsing my 'App_Master' directory.

    *Specs*
    Running this on a server (not a desktop install)

    Directory Screenshot below:



    Thanks
    Scott
  2. Scott
    Scott avatar
    28 posts
    Registered:
    12 Nov 2010
    05 Apr 2011
    Link to this post
    I am at complete stand-still until I receive some sort of feedback or alternative solution for getting the css to be recognized in my master page.  Hopefully its a simple error on my part, however I need to rule out that my master page is markup correctly.

    I decided to add my stylesheets to the GLOBAL directory one more time with a 'cssLoadOrder.xml calling the styles. Below is code of the page.
    <!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>
    <title>infotest</title>
    <link href="/Sitefinity/WebsiteTemplates/InfoRetail/App_Themes/InfoRetail/global/reset.css" type="text/css" rel="stylesheet" />
    <link href="/Sitefinity/WebsiteTemplates/InfoRetail/App_Themes/InfoRetail/global/inforetail.css" type="text/css" rel="stylesheet" /></head>
    
    <body>
    <form method="post" action="Preview" id="form1">
    <div class="aspNetHidden">
    <input type="hidden" name="ctl02_TSSM" id="ctl02_TSSM" value="" />
    <input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
    <input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
    <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUENTM4MWRkhgZx8WpO04gJp4xY6jde6zDmLDzk1Nwfx3F630R4Xio=" />
    </div>
    
    <script type="text/javascript">
    //<![CDATA[
    var theForm = document.forms['form1'];
    if (!theForm) {
        theForm = document.form1;
    }
    function __doPostBack(eventTarget, eventArgument) {
        if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
            theForm.__EVENTTARGET.value = eventTarget;
            theForm.__EVENTARGUMENT.value = eventArgument;
            theForm.submit();
        }
    }
    //]]>
    </script>
    
    
    <script src="/WebResource.axd?d=QBnFx_BdTsfejUmKPduKI5rkZAV6-8U1f2W4gLB-CYeG4u--oDaLj-F6yYgFnJXlrDFcsunmIMlq0_uYuEzXLPe5A3iot-itween_iJmBa41&amp;t=634372237361071470" type="text/javascript"></script>
    
    
    <script src="/ScriptResource.axd?d=BTqQZUHKGV8grP5pM82Gph3DdplRA06Yn2o-hJX00MGR0eKKNFnLjr04wrrSCvu3JB4dCtZy4LhNAgzfbWTIXxYS1t_TzBSdyMlNYHUCdNDIy01c_4tUYkg3WiHRa9fORPZmXdJ6qEanI_C73zpjKAIFgYE2BwNc4ybTr6ZHKvE1&amp;t=2610f696" type="text/javascript"></script>
    <script src="/ScriptResource.axd?d=tY5J6p1GVYbmw6MFjv5AoaRJf29A8ViqKHDSwleWF_TPjPmGev-cxcZloPCEbX31GF92B8fvGGdS5NP9b5JV1SL9kSn4ptVRVDuHJgPr_zyBD_uVXYtpl2ES2YunM1DMleRTUiKgFqQwY1cxqnRRrAVNX0k4AQ8CmhuCMne4CIMlBk-Xnsk5z4Pykdgj1qzI0&amp;t=2610f696" type="text/javascript"></script>
    <script type="text/javascript">
    //<![CDATA[
    Sys.WebForms.PageRequestManager._initialize('ctl00$ScriptManager1', 'form1', [], [], [], 90, 'ctl00');
    //]]>
    </script>
    
    <div class="container">
    	<div class="header"> 
    	    <div class="logo"></div>
        </div>
        <!-- end header -->
         
    </div>
    <!-- end container -->
    
    </form>
    
    </body>
    </html>
    

    Thanks.
  3. Scott
    Scott avatar
    28 posts
    Registered:
    12 Nov 2010
    05 Apr 2011
    Link to this post
    Update: Not sure if this has any relevance, but I installed SilverLight and restarted my computer and now the pages are rendering correctly.

    Thanks
3 posts, 0 answered