DNN 5.1.1 - Editor not picking up styles from DNNGeneral.css

Last post 08-21-2009, 3:56 PM by sunsethill. 3 replies.
Sort Posts: Previous Next
  •  08-21-2009, 10:12 AM 54901

    DNN 5.1.1 - Editor not picking up styles from DNNGeneral.css

    Hi,
     
    I am using the editor in a DNN 5.1.1 website.
     
    In web.config, I have:
     
    EditorWysiwygModeCss="~\Providers\HtmlEditorProviders\CEHtmlEditorProvider\DNNGeneral.css"
     
    In DNNGeneral.css, I have:
     
    Body
    {
        background-color: white;
        FONT-WEIGHT: normal; 
        FONT-SIZE: 11px;
        COLOR: #000000;
        FONT-FAMILY: "Trebuchet MS";
        text-decoration: none;
        line-height:1.5;
        padding:0px;
    }
     
    When viewing the editor in HTML view, it is picking up these styles:
     
     
    When viewing the editor in Normal or Preview mode, it does not pick up the styles from the body section:
     
     
    Any ideas what I may be doing wrong.  I really need the editor to show content with the styles from the body section of DNNGeneral.css,
     
    Thanks, Al
     
     
  •  08-21-2009, 10:28 AM 54902 in reply to 54901

    Re: DNN 5.1.1 - Editor not picking up styles from DNNGeneral.css

    Al,
     
    Try the following code:
     
    Body
    {
        background-color: white;
        FONT-WEIGHT: normal; 
        FONT-SIZE: 11px;
        COLOR: #000000;
        FONT-FAMILY: "Trebuchet MS";
        text-decoration: none;
        line-height:1.5;
        padding:0px;
    }
     
    td,p,span,div,table
    {
        FONT-SIZE: 11px; 
        FONT-FAMILY: "Trebuchet MS";    
        line-height:1.5;
    }
     
    Keep me posted
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  08-21-2009, 10:44 AM 54903 in reply to 54902

    Re: DNN 5.1.1 - Editor not picking up styles from DNNGeneral.css

    Thanks Adam.  We're getting closer.  I made a change to this section to add the color because it was still gray.
     
    td,p,span,div,table
    {
        FONT-SIZE: 11px;
        FONT-FAMILY: "Trebuchet MS";    
        line-height:1.5;
       COLOR: #000000;
    }
     
     
    Now in Normal and Preview mode, it is picking-up the correct font and color - but the links are not displaying as per the DNNGeneral file:
     
    Here are the link styles from DNNGeneral.css:
     

    A:link  {
        text-decoration: none; 
        COLOR: #325a8b;
    }

    A:visited   {
         text-decoration: none; 
        COLOR: #325a8b;
    }

    A:hover {
         text-decoration: underline; 
         COLOR: #6cb43f;
    }

    A:active    {
         text-decoration: none; 
        COLOR: #325a8b;
    }

     
    Here is how it looks after inplemeting the change you sent:
     
     
    The text is in the correct font and color (I took this screenshot before making the change mentioned at the top of this post) and the link styles are wrong.
     
    ***************************
     
    Here is how the page looks after I save the content - note the black text, and style of the link.
     
     
     
     
  •  08-21-2009, 3:56 PM 54911 in reply to 54903

    Re: DNN 5.1.1 - Editor not picking up styles from DNNGeneral.css

    Hi Adam,
     
    Please let me know if you have any suggestions to get the link styles to appear in the editor.  The font and color is working OK now.
     
    Thanks in advance, Al
View as RSS news feed in XML