Skip navigation
bessfernandez
Currently Being Moderated

Custom CSS styles not displaying in Contribute CS4

Dec 21, 2009 5:02 PM

I am setting up a Contribute site with aspx pages using includes for shared elements and converted into templates using Dreamweaver. When i try to set up a specific stylesheet, or any stylesheet to be populated in Edit view via the Role settings, it doesn't render a thing in the drop downs. Note that when i edit these pages i am not seeing any styles imported period. When i browse in Contribute I see the styles render correctly, but when in I am in Edit mode i do not, so i am not sure if this is the root of my problem. However, i assume contribute would be able to still get the path of the external css file i am pointing to via th Roles > styles settings and at least populate that drop down with available styles. Can someone tell me why this might not be working? thanks!

 

 

 

- Bess

 
Replies
  • Currently Being Moderated
    May 7, 2010 3:49 PM   in reply to bessfernandez

    I had the same problem with a web page that used @import url("/_css/template.css") to load a style sheet. Replacing that with a link instead -- <link rel="stylesheet" type="text/css" media="screen"  href="/_css/template.css" /> -- allowed Contribute to render the page properly in edit mode.

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 18, 2011 3:30 PM   in reply to bessfernandez

    Make sure the address bar in Contribute is displaying your URL and

    not a file path.

    Your administrator can remedy this by going to the role settings and making sure the Home address is set to the URL.  If you can't get the admin to update the role settings, you can enter your URL into the address bar and then the site should be able to find linked style sheets.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 3, 2011 2:34 PM   in reply to shooshoo

    the media="screen" option did not work for me. It is using a url and not a file path. I'm not sure what is going on.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 3, 2011 2:44 PM   in reply to StefanoAscari

    If you look at the same page in a browser do all the styles get rendered properly? Using Firefox and either the Web Developer - http://chrispederick.com/work/web-developer/ - or Firebug - http://getfirebug.com/ - add-ons makes working with stylesheets much easier.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 4, 2011 7:25 AM   in reply to Tom Benjamin

    Hi Tom,

    thanks for checking in.


    Yes, all the pages render properly. Here is the url of the site: http://www.hhh.umn.edu/ 3

    The landing page is the only paged not configured to work with Contribute while every other page on the site is.

     

    Thanks,

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 4, 2011 8:49 AM   in reply to StefanoAscari

    Looking at your homepage, there are quite a few validation errors that may be throwing off the rendering in Contribute. You can use another Firefox add-on called HTML Validator - https://addons.mozilla.org/en-US/firefox/user/155/?src=api - to check the page or go to http://validator.w3.org/

     

    Your home page has quite a lot of errors in its XHTML syntax, whereas the others appear to have just a few, and less severe ones. That could be making the difference for Contribute.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 4, 2011 10:02 AM   in reply to Tom Benjamin

    Yes,

    We've validated the page. Most of those errors are not particularly connected with layout (at least I can't find any that are, if you can please point out the ones that you think might be remotely related). As I've stated, the pages render fine in Contribute until you go into edit mode.

     

    Thanks for looking into this, though.

     

    Stefano

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 4, 2011 11:02 AM   in reply to StefanoAscari

    I see you've fixed the validation errors. Do you still have problems in Contribute editing mode? There are some CSS errors (Firefox > Web Developer > Error Console); maybe they're affecting the Contribute editor, which I have found to be very finicky in the past. Beyond that the only advice I have is to take a copy of the page and strip it down to the basics (no scripts or styles), see if that works in the editor. If it does, then add one thing back in, and repeat the process.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points