Skip to Content
Menu
This question has been flagged
2 Replies
5538 Views

I am using Odoo v10.I have created a custom class and added css property for that class and put that in <style> tag , but that css property is not applied if the module is not installed, After successful installation of module css style work. What to do if I want to use external CSS style before module install.

<html>

<head>

</head>

<body>

     <style> // not work if module is not install
            .text_custom{
                    color:#875A7B;
                    font-size:18px;
            }
     </style>

    <section class="oe_container oe_dark">

    <div class="oe_row">

        <h2 class="oe_slogan" style="color:#875A7B;">Title</h2> // inline css works well

        <h3 class="text_custom">Subtitle</h3>

</div>

</section> 

</body>

</html>

Anyone help me, how to add external css file/css style in index.html ?

Avatar
Discard
Best Answer

Hello Maintree Trivedi,

css custom class it is not work properly please try with inline css just as mention below.

Ex:
<span style="color:#875A7B;font-size:18px;">Text</span>

I hope it works
Regards,



Avatar
Discard
Best Answer

Hi Maitree,

Add this class before your .oe_styling_v8  css custom class.

<style> // not work if module is not install
           .oe_styling_v8 .text_custom{

                    color:#875A7B;
                    font-size:18px;
            }
     </style>

i have checked this version 9 and it worked well.

Regards,

Silvestar

Avatar
Discard
Author

Thanks for your help.

But, It does not work for me.

Related Posts Replies Views Activity
0
Jun 24
151
1
Jul 23
3757
1
Sep 23
675
1
Jul 19
3005
1
May 18
6307