file:///C:/Users/gjkbyf/Desktop/HTML/astrolog/index.html - запуталась со своим творением, может кто-то подсказать как сделать так чтобы картинка не уходила по горизонтали
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>
<link rel="stylesheet" href="styles.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&family=Roboto:wght@300&family=Rubik:ital,wght@1,300;1,400&family=Source+Serif+4:ital,wght@0,600;1,700&display=swap" rel="stylesheet">
</head>
<body class="welt" src="гороскоп.jpg"alt="horoscope"></body>
<nav class="nav">
<a class="top am"href="about.html">Обо мне</a>
<a class="am" href="servises.html">Мои услуги</a>
<a class="am" href="reviews.html">Отзывы</a>
<a class="am"href="contacts.html">Контакты</a>
</nav>
<br>
<div class="heading">
<div class="ast">
<h1 class="je">ИРИНА ПЕТРУХИНА</h1>
<h3 class="ice">профессиональный астролог</h3>
<li>
<ul class="ice wap">☄ Консультация астролога</ul>
<ul class="ice wap">☄ Натальная карта, личный гороскоп</ul>
<ul class="ice wap">☄ Гороскоп на выбор профессии</ul>
<ul class="ice wap">☄ Консультации в бизнесе</ul>
<ul class="ice wap">☄ Значимые даты в гороскопе</ul>
</li>
<a href="https://wa.me/79700000000" target="_blank"><button class="bt btn">Записаться на консультацию</a></button>
</div>
<br>
</div>
<div class="my">
<video autoplay muted loop id="waitVideo"playsinline>
<source src="Universe - 883.mp4" type="video/mp4">
</video>
</div>
<div class="strep">
<p class="maises"><i>Моя миссия<i></p>
<br>
<div class="maris">
<p>помочь найти себя и свое предназначение
Со мной ты станешь счастливее</p>
</div>
<div class="ded">
<h3 class="am">Как воспользоваться моими услугами</h3>
</div>
<br>
<div class="pet">
<div class="aple">
<p class="ice">Свяжитесь со мной удобным для вас способом:по телефону,эл.почте или WhatsApp</p>
</div>
<br>
<div class="aple">
<p class="ice">Я детально проработаю ваш запрос,найду наилучшее решение.</p>
</div>
<br>
css:
#myVideo{
width: 400px;
height:400px;
border-radius: 50%;
object-fit: cover;
}
body{
margin: 0 auto;
}
.welt {
background:url(гороскоп.jpg);
background-attachment: fixed;
background-repeat: repeat-x;
}
.nav{
display: flex;
justify-content: flex-end;
padding: 20px;
}
.am{
text-decoration: none;
color:#fdacef;
text-transform: uppercase;
padding: 20px;
font-weight: bold;
margin: 0;
font-family: 'Montserrat', sans-serif;
}
.am:hover{
color:#292C6D;
transition-duration: 1s;
}
.top{
margin-right: auto;
font-family: 'Montserrat', sans-serif;
}
.heading{
display: flex;
justify-content: flex-start;
margin-left:150px ;
}
.ice{
color: white;
font-family: 'Montserrat', sans-serif;
align-self: center;
justify-items: center;
text-align:center;
}
.wap{
display: flex;
text-align: center;
}
.je{
font-size: 40px;
color:#fdacef;
font-family: 'Montserrat', sans-serif;
font-weight: bold;
}
.bt{
text-transform: uppercase;
text-decoration:none;
font-size: 12px;
padding: 10px;
background-color:#fdacef;
border-radius: 20px;
cursor: help;
color: #1C6DD0;
font-family: 'Montserrat', sans-serif;
text-align: center;
}
.bt:hover{
background-color:#292C6D;
transition-duration: 1s;
}
.ast{
display: flex;
flex-direction: column;
justify-content:flex-start;
}
.about{
background:url(гороскоп.jpg);
background-attachment: fixed;
background-repeat: repeat-x;
}
.praim{
display: flex;
flex-direction: column;
margin-top: 100px;
width: 400px;
}
.irina{
margin-top: 50px;
margin-left: 70px;
border-radius: 20px;
}
.nice{
text-decoration:underline;
color: white;
margin-left: 20px;
font-size: 25px;
font-family: 'Montserrat', sans-serif;
}
.wain{
margin-left: 20px;
font-family: 'Montserrat', sans-serif;
}
.jpg{
border-radius: 20px;
}
.ser{
display: flex;
justify-content: center;
}
.gor{
display: flex;
flex-direction: column;
justify-content:space-around;
font-family: 'Montserrat', sans-serif;
}
.tor{
align-items:center;
width: 300px;
margin-left: 40px;
padding: 10px;
font-family: 'Montserrat', sans-serif;
}
.zod{
display: flex;
}
.grin{
display: flex;
justify-content: space-between;
}
.wiw{
display: flex;
justify-content: center;
}
.ero{
display: flex;
flex-direction: column;
align-items: center;
width: 200px;
border: solid 2px;
border-color: #fdacef;
border-radius: 20px;
background-color:#1a082e;
}
.rev{
display: flex;
justify-content: space-between;
}
.vev{
display: flex;
justify-content: center;
}
.wh{
color:white ;
font-size: 30px;
transition-duration: 3s;
}
.contacts{
display: flex;
flex-direction: column;
align-items: center;
}
.con{
font-size: 70px;
color:#fdacef;
}
.wh:hover{
color:#292C6D;
transition-duration: 1s;
}
.form{
display: flex;
flex-direction: column;
align-self: center;
justify-content: center;
width: 400px;
top: 50%;
left: 50%;
margin-top: 20px;
margin-left: 450px;
}
.ded{
display: flex;
margin-top: 80px;
font-size: 70px;
}
.pet{
display: flex;
justify-content: space-around;
margin-right: 100px;
}
.aple{
display: flex;
justify-content: space-between;
width: 250px;
border: solid;
border-color: #fdacef;
border-radius: 20px;
font-size: 20px;
padding: 10px;
margin-right: 100px;
}
.ics{
color: white;
padding: 10px;
font-family: 'Montserrat', sans-serif;
}
h3{
font-size: 20px;
}
.ses{
display: flex;
justify-content: center;
font-size: 40px;
color: #fdacef;
padding: 20px;
}
.my{
width:179;
height: 50%;
z-index: -3;
top:0;
position: absolute;
}
.maris{
font-size: 30px;
color: white;
width: 600px;
padding: 20px;
margin-left: 100px;
margin-top: 100px;
}
.maises{
font-size:40px ;
color: white;
padding: 20px;
margin-left: 300px;
margin-top: 150px;
text-align:center;
}
.strep{
display: flex;
justify-content: space-between;
align-self: center;
margin-top: 100px;
}
.forma{
display: flex;
justify-content: space;
}
.video{
display: flex;
justify-content: flex-start;
margin-top: 100px;
margin-left: 80px;
}
.tet{
display: flex;
flex-direction: column;
margin-right: 80px;
margin-left: 40px;
}
Если кто-то сможет помочь буду очень благодарна...