cancel
Showing results for 
Search instead for 
Did you mean: 

CSS include not loading

drozes
Champ in-the-making
Champ in-the-making
Hi guys;

One of my custom webscripts is grabbing a bunch of files and construction a website out of them.
(example.  in a component folder, i have head.html, nav.html and footer.html).

The site source looks exactly as it should.
The head.html links some CSS files - which when clicked loads the css document as expected.

***The issue - Although it appears the CSS file was linked correctly -  none of the css rules are being applied.  firebug itself says there are no rules for that file.

Anyone have an idea of what is happening?


//Sample source of the render webpage from my webscript.



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
   <head>
   <!–  HEADER COMPONENT –>
   <title>Sample Customization</title>
   <link rel="stylesheet" href="/testing-site-custom/css/style.css" type="text/css" media="screen" />


   </head>
<body>
   <div class="header">
      Header Stuff
   </div>
   <div class="navigation">
      <ul>
         <li>Home</li>
         <li>Section1</li>
         <li>Section 2</li>
      </ul>
   </div>
   
   <div id="wrapper">
      <p>tests Is this working?</p>
   <div>


   <div class="footer">

      Footer Content

   </div>

</body>
</html>
11 REPLIES 11

drozes
Champ in-the-making
Champ in-the-making
Hey Russ;

I've added the bean to my spring context.

The CSS file alone is not being served through a webscript.  A webscript is loading a head.html - containing the top section of an HTML page along with css and js links.

The actual CSS file itself is being served through a template.  Am i am able to set the mimeType of a template?  (The file itself is set to the proper mimeType).

rdanner
Champ in-the-making
Champ in-the-making
Hey Russ;

I've added the bean to my spring context.

The CSS file alone is not being served through a webscript.  A webscript is loading a head.html - containing the top section of an HTML page along with css and js links.

The actual CSS file itself is being served through a template.  Am i am able to set the mimeType of a template?  (The file itself is set to the proper mimeType).


All, we're having the same conversation here: https://forums.alfresco.com/en/viewtopic.php?f=52&t=44160&p=129685#p129685