Helpful CSS classes rendered for the BODY element

   —   
If you're struggling to make your web site look good for all the different browsers or just want to apply unique styles for different cultures, you might take advantage of the BODY classes rendered for you by Kentico CMS output engine.
If you take a closer look on the page source code rendered by Kentico CMS you may notice several CSS classes being specified for the BODY element of your page. Those vary under the different circumstances.

1_HTML_page_BODY_classes.png

There are three groups of classes rendered there:

1) Language direction classes- .RTL, .LTR- used to differentiate between the western (text typing from left to right) and eastern cultures (text typing from right to left),

2) Browser (browser core) classes- IE, Safari, Gecko, etc.- indicates what is the client browser displaying the page content to the visitor. Useful mostly when fixing the CSS issues resulting from the way various browsers interpret the HTML code,

3) Culture code classes- ENUS, CSCZ, etc.- provides information on the current culture of the content.
 
-kj-


See also:

Applies to: 3.x, 4.x, 5.x
Share this article on   LinkedIn

Karol Jarkovsky

Director of Product

Comments