Is it safe to style .sfPublicWrapper?

Posted by Community Admin on 05-Aug-2018 00:45

Is it safe to style .sfPublicWrapper?

All Replies

Posted by Community Admin on 04-Feb-2011 00:00

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.

Posted by Community Admin on 04-Feb-2011 00:00

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:

.sfPublicWrapper
    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,
Katia
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

This thread is closed