Skip to Content
मेन्यू
This question has been flagged
1 Reply
8641 Views

VERSION 9

Thanks to https://www.odoo.com/forum/help-1/question/how-change-the-logo-size-101691 I managed to change the logo size but now I cannot vertically center the logo.

FROM HTML EDITOR: //Customize/HTML Editor/Show Logo

<?xml version="1.0"?>

<data inherit_id="website.layout" customize_show="True" name="Show Logo">

<xpath expr="//header//a[@class='navbar-brand']" position="replace">

<a href="/" class="navbar-brand logo">

<img src="/logo.png" t-att-alt="'Logo of %s' % res_company.name" t-att-title="res_company.name" style="max-width: 200px; max-height:85px"/>

</a>

</xpath>

</data>

How to I vertically center the logo in the header?

Avatar
Discard
Best Answer

Please check my following answer: https://www.odoo.com/forum/help-1/question/how-change-the-logo-size-101691#answer-101712  

Please note that  the height of the navbar might change depending if there is a second line in the navigation because of missing width.

Avatar
Discard
Related Posts Replies Views Activity
5
दिस॰ 15
5884
1
दिस॰ 22
4168
3
जन॰ 24
16080
4
जुल॰ 25
4006
0
जून 24
1472