CSS not being parsed correctly within editor

Last post 01-16-2009, 10:58 AM by Luminousc. 1 replies.
Sort Posts: Previous Next
  •  01-16-2009, 10:40 AM 47815

    CSS not being parsed correctly within editor

    Hi Adam,
     
    I can't seem to get my fonts to look the same both within the editor and outside of the editor. When the XHTML is used in my page it is shown at the correct 11px size, but within the editor it's much larger. I've had a hunt through the forums and can't find the answer.
     
    Below are the separate sections of related code:
     
    The editor tag:

    <CE:Editor ID="Editor1" runat="server" AutoParseClasses="true" Width="100%" Height="450"
      AutoConfigure="Simple" FilesPath="/App_Themes/Default/CMS" BreakElement="Br" ConvertHTMLTagstoLowercase="true"
      RemoveTBODYTag="true" EditorWysiwygModeCss="/App_Themes/Default/Style.css">
    </CE:Editor>
     

    My style.css (complete, not a snippet):
    body
    {
      background-image: url(/App_Themes/Default/Images/page_background.png);
      background-repeat: repeat-x;
      font-family: Arial, Verdana;
      font-size: 11px;
      color: #555555;  
    }
     
     
    Screen Snaps:
     
    Saved XHTML Rendered into an ASP:Label:
     

    As shown within Editor:
     
     
    I'll be heading home for the weekend shortly so I'll check back on Monday to see if you've been able to shed any light on the subject.
     
    Thanks in advance,
    Craig
     
    Filed under: , ,
  •  01-16-2009, 10:58 AM 47816 in reply to 47815

    Re: CSS not being parsed correctly within editor

    Ahah! Four hours trying to get 'round this and 5 minutes after I ask for help I get it working!
     
    I installed DevToolBar into Internet explorer and turned off the cache (even though my browser was set to look for a new version of the page on every visit) and it started working.
     
    Just FYI, this affected both IE and Firefox and ctrl-clicking refresh / Shift-F5-ing didn't force a refresh whilst in the editor.
     
    Hope this helps someone else.
     
    Craig
View as RSS news feed in XML