блочная верстка с использованием float(clear:both)
After Width: | Height: | Size: 747 KiB |
After Width: | Height: | Size: 381 KiB |
After Width: | Height: | Size: 1.9 MiB |
After Width: | Height: | Size: 1.6 MiB |
After Width: | Height: | Size: 1.9 MiB |
After Width: | Height: | Size: 610 KiB |
After Width: | Height: | Size: 610 KiB |
After Width: | Height: | Size: 5.8 KiB |
After Width: | Height: | Size: 138 KiB |
After Width: | Height: | Size: 4.1 KiB |
After Width: | Height: | Size: 11 KiB |
|
@ -0,0 +1,102 @@
|
|||
<!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">
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<title>Food menu</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="logo">
|
||||
<img src="images/logo.png" alt="">
|
||||
</div>
|
||||
<div class="plashka">
|
||||
<div class="plashka-item-1">
|
||||
<img src="images/car.png" alt="">
|
||||
</div>
|
||||
<div class="plashka-item-2">
|
||||
<span class="slogan">EXPRESS DELIVERY</span>
|
||||
<br>
|
||||
<span class="phone">+1 234 567 890</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="clear"></div>
|
||||
<div class="burger-image">
|
||||
<img src="images/Burger.png" alt="">
|
||||
</div>
|
||||
<div class="section-1">
|
||||
<div class="menu-1">
|
||||
<li><span class="title">BURGERS</span></li>
|
||||
<li><span>Lorem ipsum dolor</span><a>.........................</a><span>10$</span></li>
|
||||
<li><span>Duis aute irure</span><a>.........................</a><span>10$</span></li>
|
||||
<li><span>Excepteur sint occaecat</span><a>.........................</a><span>10$</span></li>
|
||||
<li><span>consectetur adipiscing elit</span><a>.........................</a><span>10$</span></li>
|
||||
<li><span>reprehenderit in voluptate</span><a>.........................</a><span>10$</span></li>
|
||||
<li><span>nostrud exercitation</span><a>.........................</a><span>10$</span></li>
|
||||
<li><span>Ut enim</span><a>.........................</a><span>10$</span></li>
|
||||
<li><span>Spinach Artichoke Dip</span><a>.........................</a><span>10$</span></li>
|
||||
</div>
|
||||
<div class="menu-2">
|
||||
<li><span class="title">DRINKS</span></li>
|
||||
<li><span>Lorem ipsum dolor</span><a>.........................</a><span>10$</span></li>
|
||||
<li><span>Duis aute irure</span><a>.........................</a><span>10$</span></li>
|
||||
<li><span>Excepteur sint occaecat</span><a>.........................</a><span>10$</span></li>
|
||||
<li><span>consectetur adipiscing elit</span><a>.........................</a><span>10$</span></li>
|
||||
<li><span>reprehenderit in voluptate</span><a>.........................</a><span>10$</span></li>
|
||||
<li><span>nostrud exercitation</span><a>.........................</a><span>10$</span></li>
|
||||
<li><span>Ut enim</span><a>.........................</a><span>10$</span></li>
|
||||
<li><span>Spinach Artichoke Dip</span><a>.........................</a><span>10$</span></li>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
<img src="images/Layer 3.png" alt="" class="botl">
|
||||
<img src="images/Sauce.png" alt="" class="souse">
|
||||
<div class="section-2">
|
||||
<div class="menu-1">
|
||||
<li><span class="title">DESSERTS</span></li>
|
||||
<li><span>Lorem ipsum dolor</span><a>.........................</a><span>10$</span></li>
|
||||
<li><span>Duis aute irure</span><a>.........................</a><span>10$</span></li>
|
||||
<li><span>Excepteur sint occaecat</span><a>.........................</a><span>10$</span></li>
|
||||
<li><span>consectetur adipiscing elit</span><a>.........................</a><span>10$</span></li>
|
||||
<li><span>reprehenderit in voluptate</span><a>.........................</a><span>10$</span></li>
|
||||
<li><span>nostrud exercitation</span><a>.........................</a><span>10$</span></li>
|
||||
<li><span>Ut enim</span><a>.........................</a><span>10$</span></li>
|
||||
<li><span>Spinach Artichoke Dip</span><a>.........................</a><span>10$</span></li>
|
||||
</div>
|
||||
<div class="menu-3">
|
||||
<a class="text">It is a good time for the great taste of burgers</a><br>
|
||||
<a class="burger-week">BURGER</a><br>
|
||||
<a class="week">WEEK</a><br>
|
||||
<div class="burger-action">
|
||||
<img src="images/action.png" alt="" class="burger-action-img">
|
||||
<div class="price">
|
||||
<div class="price-m">
|
||||
<a class="price-m-item-1">$5<a class="price-m-sub">.49</a></a><br>
|
||||
<a class="price-m-item-2">Only</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<img src="images/Burger1.png" alt="" class="burger-image-clone">
|
||||
<div class="clear"></div>
|
||||
<div class="footer-line">
|
||||
<div class="spicy">
|
||||
<img src="images/Vector Smart Object2.png" alt="" class="spicy-img">
|
||||
<a class="spicy-text">Spicy Availaable</a>
|
||||
</div>
|
||||
<div class="address">
|
||||
<a>info@yoursite.com // wwww.yoursite.com</a>,<br>
|
||||
<a>Main Road, Building Name, Country</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -0,0 +1,257 @@
|
|||
*{
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
body{
|
||||
font-family: Geneva, Arial, Helvetica, sans-serif;
|
||||
}
|
||||
.container{
|
||||
width: 980px;
|
||||
margin: 0 auto;
|
||||
height: auto;
|
||||
background-image: url(images/Background.png);
|
||||
background-size: cover;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.logo{
|
||||
float: left;
|
||||
}
|
||||
.logo img{
|
||||
padding: 50px 0px 0px 40px;;
|
||||
width: 300px;
|
||||
height: 90pd;
|
||||
}
|
||||
.plashka{
|
||||
float: right;
|
||||
background-color: #bf2121;
|
||||
width: 360px;
|
||||
padding: 15px 0px 15px 30px;
|
||||
margin-top:40px;
|
||||
z-index: 1;
|
||||
|
||||
}
|
||||
|
||||
.plashka-item-1 img{
|
||||
float: left;
|
||||
padding-top: 6px;
|
||||
width: 40px;
|
||||
height: 44px;
|
||||
}
|
||||
.plashka-item-2{
|
||||
float:left;
|
||||
padding-left: 15px;
|
||||
}
|
||||
a{
|
||||
text-decoration: none;
|
||||
color: white;
|
||||
|
||||
}
|
||||
.slogan{
|
||||
font-size: 12px;
|
||||
color: #fff;
|
||||
font-weight: 500;
|
||||
|
||||
}
|
||||
.phone{
|
||||
font-size: 30px;
|
||||
color: #fff;
|
||||
font-weight: 600;
|
||||
|
||||
}
|
||||
.clear{
|
||||
clear: both;
|
||||
}
|
||||
.burger-image img{
|
||||
display: block;
|
||||
margin: auto;
|
||||
width: 14%;
|
||||
height: 14%;
|
||||
-webkit-filter: drop-shadow(10px 15px 15px #a07001);
|
||||
filter: drop-shadow(10px 15px 15px #a07001);
|
||||
}
|
||||
.section-1{
|
||||
margin-top: -10px;
|
||||
}
|
||||
.section-2{
|
||||
margin-top: 90px;
|
||||
}
|
||||
.menu-1{
|
||||
margin-left: 40px;
|
||||
float: left;
|
||||
|
||||
}
|
||||
.menu-2{
|
||||
margin-right: 40px;
|
||||
float: right;
|
||||
}
|
||||
.menu-3{
|
||||
margin-right: 40px;
|
||||
float: right;
|
||||
}
|
||||
|
||||
li{
|
||||
list-style:none;
|
||||
padding: 10px 0px;
|
||||
}
|
||||
span{
|
||||
padding:15px 10px;
|
||||
text-transform: uppercase;
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
}
|
||||
a{
|
||||
color: black;
|
||||
}
|
||||
.title{
|
||||
font-size: 27px;
|
||||
font-weight: 700;
|
||||
}
|
||||
.botl{
|
||||
position: absolute;
|
||||
top: 630px;
|
||||
left: 400px;
|
||||
width: 130px;
|
||||
height: 200px;
|
||||
transform: rotate(-10deg);
|
||||
-webkit-filter: drop-shadow(10px 15px 15px #a07001);
|
||||
filter: drop-shadow(10px 15px 15px #a07001);
|
||||
|
||||
}
|
||||
.souse{
|
||||
position: absolute;
|
||||
top: 630px;
|
||||
left: 880px;
|
||||
width: 130px;
|
||||
height: 130px;
|
||||
-webkit-filter: drop-shadow(10px 15px 15px #a07001);
|
||||
filter: drop-shadow(10px 15px 15px #a07001);
|
||||
}
|
||||
.menu-3{
|
||||
position: relative;
|
||||
margin-top: 90px;
|
||||
padding: 30px 40px 20px 40px;
|
||||
float:right;
|
||||
text-align: right;
|
||||
}
|
||||
.text{
|
||||
font-size: 9px;
|
||||
padding: 5px 5px;
|
||||
border: 1px dashed #000;
|
||||
stroke-dasharray: 3;
|
||||
text-align: left;
|
||||
text-transform: uppercase;
|
||||
|
||||
}
|
||||
.burger-week{
|
||||
font-size: 60px;
|
||||
font-weight: 900;
|
||||
line-height:60px;
|
||||
color: #3d2513;
|
||||
text-shadow:1px 2px 0px #fee8bc;
|
||||
|
||||
}
|
||||
.week{
|
||||
font-size: 40px;
|
||||
font-weight: 900;
|
||||
color: #3d2513;
|
||||
text-shadow:1px 2px 0px #fee8bc;
|
||||
|
||||
}
|
||||
.burger-action{
|
||||
float: right;
|
||||
}
|
||||
.burger-action-img{
|
||||
position: absolute;
|
||||
float: right;
|
||||
left: 18px;
|
||||
top: 165px;
|
||||
-webkit-filter: drop-shadow(-30px -30px 40px #fee8bc);
|
||||
filter: drop-shadow(-30px -30px 46px #fee8bc);
|
||||
}
|
||||
.price{
|
||||
position: absolute;
|
||||
top: 320px;
|
||||
left: 40px;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
border-radius:100%;
|
||||
background-color: #bf2121;
|
||||
|
||||
}
|
||||
.price-m{
|
||||
margin:5px;
|
||||
padding:20px;
|
||||
width: 90px;
|
||||
height: 90px;
|
||||
border-radius:100%;
|
||||
background-color: #bf2121;
|
||||
border: 2px dashed #fff;
|
||||
text-align: center;
|
||||
|
||||
}
|
||||
.price-m-item-1{
|
||||
font-size: 25px;
|
||||
font-weight: 700;
|
||||
color: #fff;
|
||||
}
|
||||
.price-m-sub{
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
color: #fff;
|
||||
}
|
||||
.price-m-item-2{
|
||||
text-transform: uppercase;
|
||||
font-weight: 600;
|
||||
color: #fff;
|
||||
letter-spacing:2px;
|
||||
}
|
||||
.burger-image-clone{
|
||||
position: absolute;
|
||||
top: 1040px;
|
||||
left: -44px;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
.footer-line{
|
||||
float: left;
|
||||
}
|
||||
.spicy{
|
||||
position: relative;
|
||||
margin:100px 0px 0px 70px;
|
||||
width: 280px;
|
||||
height: 30px;
|
||||
background-color: #3d2513;
|
||||
border-radius: 3px;
|
||||
}
|
||||
.spicy-img{
|
||||
position: absolute;
|
||||
text-align: center;
|
||||
top: -28px;
|
||||
left: -23px;
|
||||
width: 50px;
|
||||
height: 60px;
|
||||
}
|
||||
.spicy-text{
|
||||
display: inline-block;
|
||||
padding: 5px 5px 5px 50px;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
color: #ffffff;
|
||||
line-height: 21px;
|
||||
letter-spacing: 0.2em;
|
||||
|
||||
}
|
||||
.address{
|
||||
margin: 30px 0px 40px 70px;
|
||||
}
|
||||
.address a{
|
||||
display: inline-block;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|