Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Vadim 1 post 71 karma points
    Jul 20, 2016 @ 19:15
    Vadim
    0

    CDF and dynamic css

    I am new in umbraco. I am building a website which has a lot of a inline css styles (from backoffice, a customer wants to take control of the colors, backgrounds etc, but doesnt want to do that from stylesheet file). How can I render all of inline css to a one or maybe more files to use it with client dependency framework? I dont like inline css so much :) Any Ideas?

  • David Peck 690 posts 1896 karma points c-trib
    Jul 21, 2016 @ 09:57
    David Peck
    0

    Yikes. That would be a challenge I think. Why can't your inline CSS stay in style attributes on the elements?

    A few thoughts.

    1. If you use the grid styles then that may help.
    2. You could just add your inline CSS in to an array and store it in the ApplicationContext.ApplicationCache.RequestCache then at the end of your page then you can recall the array and add everything at the bottom of the page.
  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies