<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>What is $css_class in portal_normal.vm</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=3931193" />
  <subtitle>What is $css_class in portal_normal.vm</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=3931193</id>
  <updated>2026-04-06T17:04:40Z</updated>
  <dc:date>2026-04-06T17:04:40Z</dc:date>
  <entry>
    <title>RE: What is $css_class in portal_normal.vm</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=3932514" />
    <author>
      <name />
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=3932514</id>
    <updated>2009-09-02T06:08:36Z</updated>
    <published>2009-09-02T06:08:36Z</published>
    <summary type="html">Hi Sam Wan,&lt;br /&gt;&lt;br /&gt;$css_class is a variable. They mentioned in&lt;br /&gt;&lt;br /&gt;_unstyled/templates/init.vm&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Just check in init.vm file.&lt;br /&gt;&lt;br /&gt;#set ($css_class = $theme_display.getColorScheme().getCssClass())&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;br /&gt;Thanks in Advance,&lt;/strong&gt;&lt;br /&gt;V.C.Vijayan&lt;br /&gt;Software Developer, TransIT mPower Labs (P) Ltd.&lt;br /&gt;info@mpowerglobal.com&lt;br /&gt;&lt;a href="http://www.mpowerglobal.com"&gt;mPower Global Inc. &lt;/a&gt;&lt;br /&gt;A Liferay expert company.</summary>
    <dc:creator />
    <dc:date>2009-09-02T06:08:36Z</dc:date>
  </entry>
  <entry>
    <title>What is $css_class in portal_normal.vm</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=3931192" />
    <author>
      <name>Sam E</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=3931192</id>
    <updated>2009-09-02T01:50:58Z</updated>
    <published>2009-09-02T01:50:58Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body class="$css_class"&gt;Hi,&lt;br&gt;&lt;br&gt;I am going to create my theme by modifying an existing theme in liferay (5.2.3).&lt;br&gt;In the portal_normal.vm file, can anybody tell me what $css_class should be?&lt;br&gt;Here is a portion of the code I copied from the existing portal_normal.vm file:&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;

        &amp;lt;title&amp;gt;$company_name - $the_title&amp;lt;/title&amp;gt;

        $theme.include($top_head_include)

        #css ($css_main_file)

        &amp;lt;script type="text/javascript"&amp;gt;
                // &amp;lt;![CDATA[
                        $page_javascript_1
                        $page_javascript_2
                        $page_javascript_3
                // ]]&amp;gt;
        &amp;lt;/script&amp;gt;

        #if ($company_logo != "")
                &amp;lt;style type="text/css"&amp;gt;
                        /* &amp;lt;![CDATA[ */
                                #banner-fol .logo-fol a {
                                        background: url($company_logo) no-repeat;
                                        display: block;
                                        font-size: 0;
                                        height: ${company_logo_height}px;
                                        text-indent: -9999em;
                                        width: ${company_logo_width}px;
                                }

                                #ie6_png_fix()
                        /* ]]&amp;gt; */
                &amp;lt;/style&amp;gt;
        #end


[color=#CC2525][/color]

&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;Thanks&lt;br&gt;Sam&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Sam E</dc:creator>
    <dc:date>2009-09-02T01:50:58Z</dc:date>
  </entry>
</feed>
