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

Hello,


I am new to Odoo and I have tried making a 2 columns layout with one side an image and the other side a text. I chose the columns layout instead of the gris as the grid was messing with my image ratio (I need it to keep the original ratio)

My 2 columns are fine, but I would like to add a space in between so my text is not sticking to my image. How can I do it?


Thank you.


Cheers,

Cyril

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

Thank you for the answer but I am not sure where to put that code.

Maybe I should have mentioned that I am using the web hosted version.

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

Hi,

Try the code

/* Add spacing between columns */
.image-column {
    margin-right: 20px; /* Adjust the value as needed */
}

.text-column {
    margin-left: 20px; /* Adjust the value as needed */
}


Hope it helps

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 12 24
4162
Colimn invisible Đã xử lý
1
thg 11 19
2747
1
thg 4 25
834
0
thg 3 25
699
0
thg 6 24
938