Answer the question
In order to leave comments, you need to log in
Bitrix. Directory items. How to resize?
Hello. Integrated component catalog. I bring out the top 4 elements from there. Horizontally.
Too big. How can you change? If I remove the frame and padding, the text moves out after the frame.
Tell me how to do it right?
Thanks in advance.
PS: Googled three hundred times before going to the toaster.
The code looks like this:
<div class="bx_catalog_item_container" id="bx_2662763187_16">
<a id="bx_2662763187_16_pict" href="/?SECTION_ID=1&ELEMENT_ID=16" class="bx_catalog_item_images" style="background-image: url('/upload/iblock/5b4/5b49b38ce05a355e789ad73175582804.jpg')" title="Холодный склад">
</a>
.bx_catalog_top_home .bx_catalog_item_images_double, .bx_catalog_top_home .bx_catalog_item_images {
position: relative;
z-index: 910;
display: block;
padding-top: 135%;
width: 100%;
background-position: center;
background-repeat: no-repeat;
-webkit-background-size: contain;
background-size: contain;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question