<!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="block">
<div>Выберите город</div>
<div>Язык</div>
<div class="items"><p>пункт1</p>
<p>пункт2</p>
<p>пункт3</p>
<p>пункт4</p>
<p>пункт5</p></div>
</div>
</body>
<style>
.block{
display: flex;
height: 80px;
align-items: center;
width: 100%;
justify-content: space-around;
}
.items{
display: flex;
justify-content: space-around;
width: 400px;
}
</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="ava">
<p>К</p>
</div>
</body>
<style>
.ava{
width: 30px;
height: 30px;
background-color: rgb(115, 82, 147);
border-radius: 50%;
display: flex;
justify-content: center;
color:white;
align-items: center;
}
</style>
</html>
.item {
position: relative;
}
input {
width: 100%;
color: #ffffff;
border: 1px solid rgba(255, 255, 255, 0.23);
background: rgba(101, 101, 101, 0.23);
height: 90px;
padding: 32px;
display: block;
outline: none;
font-size: 16px;
font-weight: bold;
}
.error {
margin-left: -5px !important;
font-size: 13px;
color: #ed273f;
font-family:Arial;
padding: 5px;
margin: 0px;
}
* {
box-sizing: border-box;
}
body {
padding: 50px;
background: #000000;
}
<h1 class="title">Lorem, ipsum dolor sit amet consectetur adipisicing elit. <br>Quae facere explicabo consequatur velit voluptates deserunt aut, ullam laborum molestias cum? Blanditiis est, nobis rem numquam reiciendis non eligendi tenetur ab!</h1>
<style>
.title{
font-family: Arial;
-webkit-text-fill-color: transparent;
background:linear-gradient(10deg, green 50%, red 50%);
background-size: 100%;
-webkit-background-clip: text;
}
</style>
<head>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js" integrity="sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN" crossorigin="anonymous"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<div class="col-xl-6 col-sm-6">
<div class="card">
<div class="card-body">
<div class="d-flex">
<div class="flex-grow-1 overflow-hidden it">
<p class="mb-1">Заголовок</p>
<div class="row">
<div class="col-md-7 my-auto">
<input class="form-control" type="text" placeholder="Напишите что-нибудь">
</div>
<div class="col-md-5 my-auto btn">
<a href="#" class="btn btn-primary waves-effect waves-light">Кнопка</a>
</div>
</div>
</div>
</div>
</div>
<!-- end card-body -->
</div>
<!-- end card -->
</div>
<style>
.btn{
display: flex;
flex-direction: column;
align-items: center;
}
</style>
<!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="block1">
<div class="inner-block1"></div>
</div>
<div class="block2">
<div class="inner-block2"></div>
</div>
<div class="block3">
<div class="inner-block3"></div>
</div>
</body>
<style>
.block1{
width: 200px;
height: 300px;
overflow: hidden;
}
.inner-block1{
width: 300px;
border-radius: 50%;
height: 400px;
background-color: brown;
}
.block2{
width: 800px;
height: 80px;
overflow: hidden;
border-radius: 50px;
border-top-left-radius: 2px;
/*Отступы для читабельности*/margin-top: 30px;
}
.inner-block2{
width: 800px;
height: 80px;
background-color: rgb(42, 165, 54);
}
.block3{
width: 400px;
height: 200px;
overflow: hidden;
/*Отступы для читабельности*/margin-top: 30px;
}
.inner-block3{
width: 400px;
border-radius: 50%;
height: 400px;
background-color: rgb(42, 108, 165);
}
</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="background">
<div></div>
</div>
</body>
<style>
.background div{
background:linear-gradient(to bottom, rgba(0,0,0,.0), rgba(255, 0, 0, 0.716));
width: 100%;
height: 100%;
}
.background{
width: 300px;
height: 500px;
background:url(Рандом картинка);
background-size: cover;
}
</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="header"><p>Меню</p></div>
</body>
<style>
.header{
width: 100%;
height: 80px;
transition-duration: 1s;
z-index: 2;
position: fixed;
background: rgba(0, 0, 0, 0);
}
body{
min-height: 2000px;
}
</style>
<script>
let header = document.querySelector(".header")
window.onscroll = function(){
if(window.scrollY > 100){
header.style.background = "#000"
}
else{
header.style.background = "rgba(0, 0, 0, 0)"
}
}
</script>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script>
<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>
<h1 class="txt">Текст</h1>
</body>
<script>
console.log($(".txt").width());
</script>
</html>