Lack of interest Add a CLASS to the body

This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.

Rigel Kentaurus

Well-known member
I have been editing PAGE_CONTAINER just to add
<body class="myStyle">

That is because I then can do really fine grained CSS definitions, and make sure those are only included for a specific style.

Having the ability to set a class on the body tag would certainly be useful.
 
Upvote 2
This suggestion has been closed. Votes are no longer accepted.
Wouldn't defining that CSS as part of the style... only apply the rules to that style? I'm not following the example.
 
I am planning to include a single stylesheet in the page (same css file, even if different styles)

I am aware that is probably not good for the page (bunch of styles not used), but maintenance wise it is easier to have just one master stylesheet with several definitions that will kick in when a certain style is active.

I use it on certain sites like that ... then I only change the body class and the page looks completely different.
 
The main usefulness I have found for adding a class or id to the body (id is really the way to go here, due to specificity) is the ability to add to the main stylesheet code like "body#this_one h1" etc. Depending on the amount of special css you are applying to a page it can be more efficient than adding another stylesheet call.
 
Top Bottom