Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #295587

    lionar
    Participant

    Hi,

    I’ve started using Cornerstone and noticed that it is adding inline style attributes to elements instead of generating CSS rules.
    ex:

    <div style="padding: 0px 0px 0px 0px; " class="x-column x-sm x-1-3">
    <div style="margin: 0px 0px 0px 0px; padding: 45px 0px 45px 0px; background-color: transparent;" class="x-section sidelink_section" id="x-section-7">

    Sorry if this issue has been mentioned/discussed before, but I’m worried that this will have an impact on site optimization as well as layout management (ex: updating one css class to change similar elements VS updating individual element styles using Cornerstone).

    So could you please let me know if there is a way to stop Cornerstone from adding inline style attributes or convert them to CSS rules instead?

    Thanks

    #295942

    Alexander
    Keymaster

    Hi lionar,

    Cornerstone uses inline styles for many of the inspector controls. There isn’t a way to disable this or convert to CSS rules. However, we’re planning at some point to make them not output when possible, for example when certain elements are left with the default settings. I don’t have an ETA on when this would happen though.