<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<div class="page">
<div class="content-container">
<div class="header"><div class="head-pos"><h2 style="text-align: center;">Заголовок<p style="font-size: 12px">Текст</p></h2></div></div>
</div>
</div>
</body>
<style>
@import url(https://fonts.googleapis.com/css?family=Montserrat:100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic);
*{
margin:0;
padding:0;
}
html{
font-family: 'Montserrat';
}
.head-pos{
width: 100%;
height: 100%;
backdrop-filter: brightness(40%);
}
.header{
color:white;
width: 100%;
height: 450px;
background-size: 100%;
background-repeat: no-repeat;
background-image: url(photo.jpg);
}
.page{
width: 100%;
display: flex;
justify-content: center;
background-color: rgb(250, 250, 250);
}
.content-container{
width: 800px;
height: auto;
margin: 0px 10px 0px 10px;
background-color: white;
}
</style>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<div class="page">
<div class="content-container">
<div class="header">
<img src="https://uprostim.com/wp-content/uploads/2021/05/image001-7.jpg" alt="">
<div class="head-pos">
<h2 style="text-align: center;">Заголовок<p style="font-size: 12px">Текст</p></h2>
</div>
</div>
</div>
</div>
</body>
<style>
@import url(https://fonts.googleapis.com/css?family=Montserrat:100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic);
*{
margin:0;
padding:0;
}
html{
font-family: 'Montserrat';
}
.head-pos{
width: 100%;
height: 100%;
backdrop-filter: brightness(40%);
}
.header{
color:white;
width: 100%;
/*
height: 450px;
background-size: 100%;
background-repeat: no-repeat;
background-image: url(photo.jpg);
*/
}
.page{
width: 100%;
display: flex;
justify-content: center;
background-color: rgb(250, 250, 250);
}
.content-container{
width: 800px;
height: auto;
margin: 0px 10px 0px 10px;
background-color: white;
}
/***********/
img {
max-width: 100%;
display: block;
}
.header {
position: relative;
}
.head-pos {
position: absolute;
left: 0;
top: 0;
}
</style>
</html>