Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html lang="ko">
- <head>
- <meta charset="UTF-8">
- <title>모던 웹디자인 기초</title>
- <style>
- /* style.css */
- body { margin: 0; }
- header, section, footer {
- width: 1000px;
- margin: 0 auto;
- position: relative;
- }
- #visual {
- width:100%;
- height:400px;
- background-image: url(http://lorempixel.com/1000/400);
- }
- nav {
- width:100%;
- height: 50px;
- background-color: black;
- }
- nav > a {
- display: inline-block;
- width: auto;
- height: 50px;
- color: white;
- font-size: 1.7em;
- text-decoration: none;
- padding: 0 10px;
- line-height: 50px;
- }
- nav > a:hover { background-color: red; }
- #main {
- position: relative;
- padding: 20px 0;
- width: 1000px;
- margin: 0 auto;
- }
- #videos { width: 100%; height: 250px; }
- #videos > div {
- float:left;
- width: 250px;
- height: 250px;
- }
- #maps { padding: 10px 0;}
- #contents > div {
- float:left;
- width: 500px;
- height: 300px;
- }
- #contents > div { font-size: 1.2em; }
- #contents > div > h3 { font-size: 1.5em; }
- #contents > div > img {
- margin: 0 20px 20px 0;
- border-radius: 75px;
- }
- #contents > div > img:hover {
- animation-name: myani;
- animation-duration: 1s;
- }
- @keyframes myani {
- from { transform: rotate(0deg); }
- to { transform: rotate(360deg); }
- }
- footer {
- clear:both;
- height: 30px;
- background-color: black;
- color: white;
- line-height: 30px;
- text-align:center;
- }
- </style>
- </head>
- <body>
- <header>
- <nav>
- <a href="#" onmouseover="bg('food')">디자인</a>
- <a href="#" onmouseover="bg('city')">HTML</a>
- <a href="#" onmouseover="bg('nature')">CSS</a>
- <a href="#" onmouseover="bg('technics')">JavaScrit</a>
- <a href="#" onmouseover="bg('cats')">PHP & MySql</a>
- </nav>
- <div id="visual">
- </div>
- </header>
- <section id="main">
- <div id="videos">
- <div><iframe width="250" height="250" src="https://www.youtube.com/embed/Yu5LBT5h84k" frameborder="0" allowfullscreen></iframe></div>
- <div><iframe width="250" height="250" src="https://www.youtube.com/embed/-wCuhDnwNzM?autoplay=1&loop=1" frameborder="0" allowfullscreen></iframe></div>
- <div><iframe width="250" height="250" src="https://www.youtube.com/embed/abUJIr4h9bs" frameborder="0" allowfullscreen></iframe></div>
- <div><iframe width="250" height="250" src="https://www.youtube.com/embed/sVtNdmAKvUw" frameborder="0" allowfullscreen></iframe></div>
- </div>
- <div id="maps">
- <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d799.119908209104!2d126.28946123439768!3d36.75905968632276!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x357a6b1e66aab1a5%3A0x2749d18b4feba468!2z7YOc7JWI7Jes7J6Q6rOg65Ox7ZWZ6rWQ!5e0!3m2!1sen!2skr!4v1440554956445" width="1000" height="350" frameborder="0" style="border:0" allowfullscreen></iframe>
- </div>
- <div id="contents">
- <div>
- <h3>모던웹디자인이란?</h3>
- <img src="http://lorempixel.com/150/150/nightlife" align="left">
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Hic quasi corrupti nemo provident pariatur veritatis quam delectus assumenda atque dolor culpa obcaecati et possimus saepe quae porro iusto dignissimos natus!
- </div>
- <div>
- <h3>글로벌숙련기술진흥원이란?</h3>
- <img src="http://lorempixel.com/150/150/sports" align="left">
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Hic quasi corrupti nemo provident pariatur veritatis quam delectus assumenda atque dolor culpa obcaecati et possimus saepe quae porro iusto dignissimos natus!
- </div>
- </div>
- </section>
- <footer>
- © 2015 유승열 All Rights Reserved
- </footer>
- <script>
- function bg(c) {
- if( ! c ) return;
- var bgurl = "http://lorempixel.com/1000/400/" + c;
- var visual = document.getElementById("visual");
- visual.style.backgroundImage = "url(" + bgurl + ")";
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement