Is it safe to style .sfPublicWrapper? - Front- & Back-End Development - Front- & Back-End Development - Progress Community
 Front- & Back-End Development

Is it safe to style .sfPublicWrapper?

  • Is it safe to style .sfPublicWrapper?
  • Generally I avoid styling classes with the sf (SiteFinity) prefix to avoid causing problems with the Sitefinity interface, but I would like to find a good wrapper class to style the body of my pages. Can I style the .sfPublicWrapper class? I would like to add a border, background color and set the font family.
  • Hi Dan Sorensen,

    "sfPublicWrapper" is set to the wrapper of all public pages if they are not based on a masterpage (it is not set to the body tag). You can use it for styling purposes.

    The CSS rule set applied to this class in Basic theme (the default public theme which comes with a blank Sitefinity installation) is:
        margin: 20px auto;
        padding: 0;
        width: 900px;

    If you set another public theme to your website this rule set will not be applied.

    Let us know if you need further help.

    Best wishes,
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items