External CSS question

4 posts, 0 answers
  1. Fit2Page
    Fit2Page avatar
    345 posts
    Member since:
    Feb 2007

    Posted 09 Sep 2009 Link to this post

    Hi,

    I link an external CSS file to an Editor from codebehind:

    NLtext.CssFiles.Add("~/" & TablePrefixStrip & "/css/telerik.css")

    This works OK, the stylesheet is coupled.
    But when I try to select classes from this sheet and add it with

    NLtext.CssClasses.Add("Links class ", ".link")

    it cannot find the classes. I think this problem occurs when a stylesheet is coupled which lies above the root of our CMS.

    But even when I try

    NLtext.CssFiles.Add("http://f2p-server:8136/css/telerik.css")
    NLtext.CssClasses.Add("Links class", ".MarLeft")

    It is not working.

    Please assist, TIA

    Marc
  2. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 14 Sep 2009 Link to this post

    Hi Marc,

    I tried to reproduce the reported problem but without success. For your convenience I have attached a video demonstrating my test and configuration. Please, try the provided steps and let me know if you still experience any problems.

    Kind regards,
    Rumen
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Fit2Page
    Fit2Page avatar
    345 posts
    Member since:
    Feb 2007

    Posted 14 Sep 2009 Link to this post

    Hi Rumen,

    Thanks very much for your explanation.
    All this was tested and gone through last by me Friday. When I look now it works, I don't believe it myself.....

    The only thing I changed was the skin for the editor. Maybe this has someting to do with caching?

    I am truly sorry for the inconvenience.

    BR,
    Marc

  5. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 17 Sep 2009 Link to this post

    Hi Marc,

    I am glad that the problem was resolved. Yes, when dealing with css styles and iframe elements it is recommended to clear the browser cache.

    Best regards,
    Rumen
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top