Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
991 Lượt xem

Hello, I'm using Odoo Online and added the search box block to the website I'm currently building but the list of items preview in the dropdown box that appears with the suggested results  gets behind the next block. I tryed applying CSS z-index to the o_dropdown_menu but it doesn't work

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Thanks for your reply but It didn't work. It has something to do with the block where the search box is added. If it's added inside the Cover Snippet. The dropdown list won't render outside the snipped. But if the search box is added inside the Text snippet, the dropdown menu will render outsite the Text snippet. 

I will use another snippet that allow the dropdown to be render outside it self.


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello,

You can try with position 

.class-name {
  position: relative;
  z-index: 999;
}


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
Website Search bar Đã xử lý
3
thg 4 25
7950
1
thg 9 24
1034
1
thg 7 23
1497
3
thg 1 24
21072
0
thg 5 21
4833