Skip to Content
Menú
This question has been flagged
1 Respondre
2893 Vistes
Can classes or IDs be added to the elements (blocks) of the web? To identify and add css properties to unique elements.


Avatar
Descartar
Best Answer

Hi,

Yes, in Odoo, just like in any other web development framework, you can add classes or IDs to elements (blocks) to identify and apply CSS properties to them. Odoo follows standard web development practices, so you can manipulate HTML templates and CSS files to achieve this.


Example :


<template id="custom_template" name="Custom Template">

    <div class="custom-class" id="unique-id">

        <!-- Your content here -->

    </div>

</template>



Hope it helps

Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
de set. 24
3668
1
de jul. 24
1912
1
de jul. 24
1939
1
de des. 22
2689
0
de maig 22
2267