Skip to Content
Menu
This question has been flagged
1 Reply
2815 Views
Can classes or IDs be added to the elements (blocks) of the web? To identify and add css properties to unique elements.


Avatar
Discard
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
Discard
Related Posts Replies Views Activity
1
Sep 24
3568
1
Jul 24
1846
1
Jul 24
1858
1
Dec 22
2644
0
May 22
2203