Answer the question
In order to leave comments, you need to log in
How to see a variable through class function include?
There is an index.php file
include __DIR__ . '/lib/mysql.php'; // класс "MySQLPDO" подключили
include __DIR__ . '/lib/engine.php'; // класс "engine" подключили
$engine = new engine;
$engine->route(); // парсим урл
class engine extends MySQLPDO {
public function route()
{
include __DIR__ . '/../tpl/header.php';
}
}
Answer the question
In order to leave comments, you need to log in
1) Use negative margin starting from a certain width (+ be sure to set overflow:hidden for the container, otherwise there will be a horizontal scrollbar)
For example
.header {
overflow:hidden;
}
@media (min-width: 1300px) {
.header-logo {
margin-left: -100px;
}
}
<div class="hero-section">
<div class="hero-section__bg">
...контент фона
</div>
<div class="hero-section__content">
<div class="container">
...контент
</div>
</div>
</div>
.hero-section {
position: relative;
}
.hero-section__content {
position: relative;
z-index: 1;
}
.hero-section__bg {
position: absolute;
z-index: 0;
top: 0;
bottom: 0;
right: 0;
width: 100%;
}
@media (min-width: 900px) {
.hero-section__bg {
width: 45%;
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question