Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

sizeofrawdata

Newbie
  
  • Posts

    3
  • Joined

  • Last visited

sizeofrawdata's Achievements

Newbie

Newbie (1/14)

  • First Post
  • Week One Done
  • One Month Later
  • One Year In
  • Conversation Starter

Recent Badges

0

Reputation

  1. ясно, спасибо. Скажите, а почему после того как я убрал из header.twig код элемента <div id="square"></div> но оставил ссылку на свой стиль в заголовке header.twig, квадрат по прежнему отображается в нижней части страницы?
  2. Благодарю Вас, всё отображается. А правильно ли я добавляю и прописываю необходимый мне код в файле header.twig а не в файле home.twig (отображение необходимо в данном случае на главной)?
  3. Здравствуйте, пытаюсь добавить элемент div на главную страницу (в шаблон) и делаю следующее: 1. Открываю (через файловый менеджер) файл header.twig и вставляю перед закрытием head (</head>) код: <div id="square"></div> создаю в папке stylesheet (../test/public_html/catalog/view/theme/default/stylesheet) свой стиль main_style.css в файл header.twig прописываю: <link href="catalog/view/theme/default/stylesheet/stylesheet.css" rel="stylesheet"> <link href="catalog/view/theme/default/stylesheet/main_style.css" rel="stylesheet">//мой код вот код в main_style.css : #square { position: absolute; /* Абсолютное позиционирование */ top: 10px; left: 15px; line-height: 1px; width: 120px; height: 120px; background: #f447ff; z-index: 5; } на главной странице должен быть нарисован квадрат, но ничего не отрисовывается (ctrl+f5, кеш браузера "чистил"). В чём может быть проблема? p.s. версия opencart Version 3.0.3.2 (rs.2)
×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.