× Здесь вы можете свободно общаться на русском языке. Просим отнестись с пониманием к тому, что мы не разговариваем на этом языке и не можем осуществлять поддержку на нем.

Вопрос по CCS

  • Posts: 43
  • Thank you received: 0
11 years 6 months ago #67082

Здравствуйте.
Помогите разобраться с CCS, у изображения необходимо увеличить нижнее и верхнее поле, что бы картинка на текст не заезжала.
С помощью Firebug нашел :

element.style {
    display: inline-block;
    margin-bottom: 10px;
    margin-top: 10px;
    vertical-align: middle;
}
то есть мне надо изменить margin-bottom и margin-top, а вот где находится ( в каком файле) этот element.style,чтобы его изменить, не могу понять.

Спасибо.

Last edit: 11 years 6 months ago by Teng.

Please Log in or Create an account to join the conversation.

  • Posts: 81481
  • Thank you received: 13062
  • MODERATOR
11 years 6 months ago #67214

element.style means that this CSS is applied directly in the HTML attributes of your tag not in an CSS.

So you should edit the front end CSS of HikaShop and use the id or the class name of the tag in order to override that CSS like that:

.my_css_class{
margin-bottom: 5px !important;
margin-top: 5px !important;
}

Please Log in or Create an account to join the conversation.

  • Posts: 43
  • Thank you received: 0
11 years 6 months ago #69251

Спасибо за ответ, но я плохо понимаю HTML(id и классы) :blush: , помогите решить проблему.
Как называется и где находится файл HTML который выводит эту страницу ?
Что-то надо менять в этом файле? Это решается только с помощью CSS?

Мне всего то надо увеличить у изображения поле сверху и снизу до 30px. :blush:

Last edit: 11 years 6 months ago by Teng.

Please Log in or Create an account to join the conversation.

  • Posts: 81481
  • Thank you received: 13062
  • MODERATOR
11 years 6 months ago #69300

That page is displayed by the file "show_default" of the view "product" via the menu Display>Views.

I didn't understand much of your previous message so I can't really say more.

Please Log in or Create an account to join the conversation.

Moderators: progreccor
Time to create page: 0.064 seconds
Powered by Kunena Forum