Nová ukázka
Reset
Načíst z URL
Uložit a získat odkaz
Vztahuje se k…
Nevyplňujte
Napiště „nejsem robot“
▶
Přepnout zobrazení
Výsledek
!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Responsive template</title> <!--google fonts--> <!--link font icons--> <script src="https://use.fontawesome.com/0a3843b4cc.js"></script> <!--google font--> <link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet"> </head> <body> <!-- Top navigation --> <div class="topnav"> <!-- Centered link --> <div class="topnav-centered"> <a href="#home" class="active"><i class="fa fa-home icon" aria-hidden="true"></i></a> </div> <!-- Left-aligned links (default) --> <a href="#contact"><i class="fa fa-newspaper-o icon" aria-hidden="true"></i></a> <a href="#news"> <i class="fa fa-envelope-o icon" aria-hidden="true"></i></a> <!-- Right-aligned links --> <div class="topnav-right"> <a href="#search"><i class="fa fa-search icon" aria-hidden="true"></i></a> <a href="#about"><i class="fa fa-question-circle icon" aria-hidden="true"></i></a> </div> </div> <!--Flex container 3x DIV--> <div class="flex-container" > <div class="icons"> <i class="fa fa-facebook-official icon1" aria-hidden="true"></i> <i class="fa fa-twitter-square icon2" aria-hidden="true"></i> <i class="fa fa-google-plus icon3" aria-hidden="true"></i> </div> <!--Article 1--> <div class="article1"> <img class="img1" alt="img1" src="https://verteb.ca/wp-content/uploads/2015/01/les-allees-de-bellevue.png" data-bm="5"> <button class="button1">Webing</button> <H1>Make it responsive</H1> <p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet.</p> <hr style="color:brown"> <img class="img2" alt="img2" src="https://cdn-images-1.medium.com/max/1600/0*uLMeaUchDuE30J_O.jpg" data-bm="12"> <button>Below line</button> <p class="under-line">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p> </div> <!--Sidebar--> <div class="side"> <button>Now</button> <p>Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.</p> </div> </div> </body> </html>
HTML
Autoformát
Standardní režim
Mobilní zobrazení
html { background:linear-gradient(90deg,rgba(0,0,0,0.1),rgba(0,0,0,0.8)) ,url("https://www.ecifm.com/wp-content/uploads/2016/06/website-design-background-1.jpg") no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; margin-left: 30px; overflow: scroll; } body { margin: 0; font-family: Arial, Helvetica, sans-serif; } .topnav { position: relative; overflow: hidden; background-color: #333; } .topnav a { float: left; color: #f2f2f2; text-align: center; padding: 14px 16px; text-decoration: none; font-size: 17px; } .topnav a:hover { background-color: #ddd; color: black; } .topnav a.active { background-color: brown; color: white; } .topnav-centered a { float: none; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } .topnav-right { float: right; } .flex-container{display: flex; margin-top: 70px; } i.icon{font-size: 22px; color:white; } div.icons{width:50px;} i.icon1, i.icon2, i.icon3{ font-size: 30px; padding-top:30px; color:white; float:left; padding-bottom: 50px; width:55px; } img.img1{width:300px; height:auto; float: left; border:1px solid white; margin-right: 2px; } .article1{color:white; padding-left: 10px; flex-basis: 70%; border-right: 4px solid white; font-family: 'Montserrat', sans-serif; font-size: 16px; } .side{flex-basis: 30%; color: white; padding:10px 10px; font-family: 'Montserrat', sans-serif; font-size: 15px; } button{width:100px; height: 30px; background-color: brown; border: none; border-radius: 5px; } hr{border-top: 1px solid brown; border-bottom: 2px solid brown; } img.img2{float: right; width: 150px; height: 100px; margin-right: 10px; } .under-line{font-family: 'Montserrat', sans-serif; font-size: 13px; padding:10px 10px; } /* Responsive navigation menu (for mobile devices) */ @media screen and (max-width: 640px) { .topnav a, .topnav-right { float: none; display: block; } /*div obalujici socialni ikony*/ div.icons{width:100%; margin:0 auto; margin-top: 5px; padding-top:-10px; order:3; } /*socialni ikony */ i.icon1, i.icon2, i.icon3{ font-size: 30px; padding-top:30px; color:white; display: inline-block; float:left; padding-bottom: 50px; width:30%; } /* flex kontejner celeho obsahu */ .flex-container{display: flex; flex-direction: column; margin-top: 70px; justify-content: center; } .topnav a:hover { background-color: #ddd; color: black; } .topnav-centered a { position: relative; top: 0; left: 0; transform: none; } /* obrazek , ktery nejde vycentrovat */ img.img1{width:300px; height:auto; display:flex; justify-content: center; } .button1{clear:both;} H1{clear:both;} .article1{color:white; padding-left: 10px; font-family: 'Montserrat', sans-serif; font-size: 16px; border-right: none; order:1; } .article1 button{float:left;} .side{flex-basis: 100%; color: white; padding:10px 10px; font-family: 'Montserrat', sans-serif; font-size: 13px; order:2; } .button3{margin-right:2px;} } .img{clear:both;} .button1, H1{clear:both;} }
CSS
Autoformát
CSS reset
Až na konci
J
ava
S
cript
Autoformát
jQuery
Umístění JS
window.onload
</head>
</body>