Перейти к публикации
View in the app

A better way to browse. Learn more.

Дизайн и модификация Invision Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Сместилась кнопка "Наверх"

Опубликовано:

Добрый день господа.

Такой вопрос.

Уехала кнопка "Наверх" на моем форуме http://forum.orbita96.ru/

Нашел ее в шаблоне и в CSS .. она перемещается .. но когда меняю размер экрана он исчезает или снова смещается ...

То есть не так как раньше.. была по середине зафиксирована и от размера окна браузера оставалась на месте.

Как ее поставить обратно на место как на стандартном шаблоне IPB 3.4

код во вкладке "Шаблоны"

----------------------

 

<a rel="nofollow" href='#top' id='backtotop' title='{$this->lang->words['go_to_top']}'><img src='{$this->settings['img_url']}/top.png' alt='' /></a>

<ul class='ipsList_inline left'>

<li>

-----------------------

Код во вкладке CSS

 

----------------

 

#backtotop {

width: 24px;

height: 24px;

line-height: 20px;

top: -20%;

left: 80%;

margin-left: -12px;

position: absolute;

display: inline-block;

background: #696969;

text-align: center;

-moz-border-radius: 16px;

-webkit-border-radius: 16px;

border-radius: 16px;

opacity: 0.4;

outline: 0;

}

 

#backtotop:hover {

background: #28af7e;

color: #fff;

opacity: 1;

}

-----------------------

Заранее спасибо.

Рекомендованные сообщения

Опубликовано:
  • Автор

Проблема решена...

Код подредактировал и вставил этот

--------------------

 

#backtotop {

width: 24px;

height: 24px;

line-height: 20px;

margin-left: 600px;

 

position: absolute;

display: inline-block;

background: #696969;

text-align: center;

-moz-border-radius: 16px;

border-radius: 16px;

opacity: 0.4;

outline: 0;

}

----------------------

Опубликовано:
  • Автор

лучше будет этот код.

Кнопка автоматом по середине.

------------

 

#backtotop {

width: 24px;

height: 24px;

line-height: 20px;

left: 50%;

position: absolute;

display: inline-block;

background: #696969;

text-align: center;

-moz-border-radius: 16px;

border-radius: 16px;

opacity: 0.4;

outline: 0;

}

--------------------

Создайте аккаунт или войдите в него для комментирования

Сейчас на странице 0

  • Нет пользователей, просматривающих эту страницу.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.