<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>self trail</title>
<style>
/*.WebContainer{
width: 100%;
height: auto;
}*/
/*.articles{
width:90%;
height: auto;
margin: auto;
}*/
/*body, html {
margin: 0px;
padding: 0px;
}*/
.Container {
width: 90%;
min-width: 500px;
margin: auto;
}
header {
width: 100%;
height: 120px;
line-height: 120px;
background-color: pink;
}
header span {
color: #fff;
font-size: 30px;
padding-left: 20px;
}
/*nav {
width: 100%;
height: 40px;
background-color: grey;
}*/
ul.tab {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
border: 1px solid #ccc;
background-color: #f1f1f1;
}
/* Float the list items side by side */
ul.tab li {float: left;}
/* Style the links inside the list items */
ul.tab li a {
display: inline-block;
color: black;
text-align: center;
padding: 14px 16px;
text-decoration: none;
transition: 0.3s;
font-size: 17px;
}
/* Change background color of links on hover */
ul.tab li a:hover {
background-color: #ddd;
}
/* Create an active/current tablink class */
ul.tab li a:focus, .active {
background-color: #ccc;
}
/* Style the tab content */
.tabcontent {
display: none;
padding: 6px 12px;
border: 1px solid #ccc;
border-top: none;
}
.content {
width: 100%;
height: 700px;
padding: 10px 0px;
background-color: skyblue;
}
footer {
width: 100%;
height: 80px;
background-color: #808080;
margin-bottom: 20px;
}
.main_articles {
width: 70%;
float: left;
height: 650px;
margin-left: 10px;
}
.side_article {
width: 25%;
float: right;
height: 600px;
border-left: 1px dotted #6d6d6d;
}
.siteDescription {
display: -moz-box; /* Firefox*/
display: -webkit-box; /* Chrome */
display: -ms-flexbox; /* IE 10 */
display: flexbox;
flex-direction: row;
flex-align:start;
width: 95%;
height: 150px;
}
/*.desImage {
-webkit-box-ordinal-group: 1; /* iOS 6-, Safari, Opera*/
/* -moz-box-ordinal-group: 1; /* Firefox*/
/*-ms-flex-order: 1; /* IE 10 */
/*-webkit-order: 1; /* Chrome */
/* flex-order: 1;
width: 200px;
height: 150px;
}
.desImage img {
width: 200px;
height: 150px;
margin-left: 5px;
border: 2px solid #6d6d6d;
}
*/
.des {
margin-left: 15px;
-webkit-box-ordinal-group: 2; /* iOS 6-, Safari, Opera*/
-moz-box-ordinal-group: 2; /* Firefox*/
-ms-flex-order: 2; /* IE 10 */
-webkit-order: 2; /* Chrome */
flex-order: 2;
width: 70%;
height: 140px;
background-color: #e9e9e9;
padding: 5px;
}
/*@media all and (max-width: 900px) {
.side_article { /* Hide advertisement panel*/
/*display: none;
visibility: hidden;
}*/
/* .siteDescription {
width: 100%; /* Earlier 70%*/
/* }
/*
.main_articles {
width: 90%;/* Earlier 95%*/
/* }
} */
/*@media all and (max-width: 700px) {
header {
height: 90px; /* Earlier 120px*/
/* line-height: 90px; /* Earlier 120px*/
/* }
header span {
font-size: 20px; /* Earlier 30px*/
/* }
.des {
width: 50%; /* Earlier 70%*/
/* background-color: #e9e9e9;
}
}
@media all and (max-width: 500px) {
header {
height: 70px;
line-height: 70px;
}
header span {
font-size: 16px;
}
.side_article {
display: none;
visibility: hidden;
}
.main_articles {
width: 90%;
}
.siteDescription {
width: 95%;
height: auto;
display: block;
}
.desImage {
margin: auto;
width: 90%;
height: auto;
}
.desImage img {
width: 95%;
margin-left: 5px;
}
.des {
margin: auto;
margin-top: 10px;
width: 90%;
height: 300px;
background-color: #d9d9d9;
}
}*/
body, html {
margin: 0px;
padding: 0px;
background-color: #ededed;
font-family: 'Trebuchet MS';
}
/*
@media only screen and (max-device-width: 480px), only screen and (-webkit-min-device-pixel-ratio: 2) , screen and (-webkit-device-pixel-ratio:1.5){
.Container {
width: 90%;
min-width: 480px;
margin: auto;
}
header {
width: 100%;
height: 150px;
line-height: 150px;
background-color: #313131;
}
header span {
color: #fff;
font-size: 35px;
padding-left: 20px;
}
nav {
width: 100%;
height: 70px;
background-color: #ff6a00;
}
.content {
width: 100%;
height: 900px;
clear:both;
padding: 10px 0px;
background-color: #fff;
font-size:35px;
}
footer {
width: 100%;
height: 80px;
background-color: #808080;
margin-bottom: 20px;
}
.main_articles {
width: 95%;
float: left;
height: auto;
margin:auto;
}
.side_article {
display: none;
visibility: hidden;
}
.siteDescription {
width: 95%;
height: auto;
display: block;
margin:auto;
}
.desImage {
margin: auto;
width: 100%;
height: auto;
}
.desImage img {
width: 100%;
height: 100%;
margin-left: 5px;
border: 2px solid #6d6d6d;
}
.des {
margin: auto;
margin-top: 10px;
width: 100%;
height: 300px;
background-color: #d9d9d9;
padding: 5px;
}
}*/
.ads {
width: 90%;
margin: auto;
margin-top: 10px;
height: 150px;
text-align: center;
padding-top: 10px;
background-color: #e5eff3;
}
</style>
</head>
<body>
<div class="Container">
<header>
<span>yemmy pizza shop </span>
</header>
<nav>
<ul class="tab">
<li><a >Cheese pizza</a></li>
<li><a >Mushroom pizza</a></li>
<li><a >Chiken pizza</a></li>
<li><a >Corn Pizza</a></li>
<li><a >veg Pizza</a></li>
</ul>
</nav>
<div class="content">
<section class="main_articles">
<article class="siteDescription">
<div class="desImage">
<img src="pizza.png" />
</div>
<div class="des">
yemmy pizzzaaa......
</div>
</article>
</section>
<aside class="side_article">
<div class="ads">
pizza 1.
</div>
<div class="ads">
pizza 2.
</div>
</aside>
</div>
<footer>
</footer>
</div>
</body>
</html>
No comments:
Post a Comment