Try Now
More in this section

Forums / Designing & Styling / Is it safe to style .sfPublicWrapper?

Is it safe to style .sfPublicWrapper?

2 posts, 0 answered
  1. Dan Sorensen
    Dan Sorensen avatar
    256 posts
    13 Aug 2010
    04 Feb 2011
    Link to this post
    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.
  2. Katia
    Katia avatar
    194 posts
    01 Jul 2016
    04 Feb 2011
    Link to this post
    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
2 posts, 0 answered