S
S
Sergey Sergeevich2016-04-03 22:32:19
PHP
Sergey Sergeevich, 2016-04-03 22:32:19

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&amp;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

1 answer(s)
S
Sergey, 2016-04-04
@gangstarcj

Change what exactly? width: 100% - put the desired percentage - change the width to the desired

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question