콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
6305 화면

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 ?

아바타
취소
베스트 답변

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,



아바타
취소
베스트 답변

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

아바타
취소
작성자

Thanks for your help.

But, It does not work for me.

관련 게시물 답글 화면 활동
0
6월 24
151
1
7월 23
5307
1
9월 23
1363
1
7월 19
3579
1
5월 18
6932