Guest User

Untitled

a guest
Jun 18th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.73 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Sitio Web</title>
  6. <link rel="stylesheet" href="css/menu.css">
  7. <link rel="stylesheet" href="css/fontello.css">
  8. <link rel="stylesheet" href="css/index.css">
  9. </head>
  10. <body>
  11. <header>
  12. <img src="imagenes/Logotipo.png" class="img-logo">
  13. <input type="checkbox" id="check">
  14. <label for="check" class="icon-menu"></label>
  15.  
  16. <nav class="menu">
  17. <ul>
  18. <li><a href="#" style="background: #df6666; color: white;">Inicio</a></li>
  19. <li><a href="#">Acerca de</a></li>
  20. <li><a href="#">Servicios</a></li>
  21. <li><a href="#">trabajos</a></li>
  22. </ul>
  23. </nav>
  24. </header>
  25. <main>
  26. <div class="content-one">
  27. <div class="content-portada">
  28. <div class="content-text">
  29. <h4>It Doesn´t Take a Rocket <h3>Scientist</h3> </h4>
  30. <h2>IT TAKES A DESIGNER</h2>
  31. </div>
  32. </div>
  33. </div>
  34. <div class="content-two">
  35. <div class="content-details">
  36. <div class="content-item2">
  37. <label class="icon-heart"></label>
  38. <h4>Desing</h4>
  39. <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean elit dolor, dictum id lacus in, pulvinar condimentum massa. Nunc dapibus, nunc sed suscipit fringilla, eros tortor bibendum risus, sed malesuada.</p>
  40. </div>
  41. <div class="content-item2">
  42. <label class="icon-laptop"></label>
  43. <h4>Bootstrap</h4>
  44. <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean elit dolor, dictum id lacus in, pulvinar condimentum massa. Nunc dapibus, nunc sed suscipit fringilla, eros tortor bibendum risus, sed malesuada.</p>
  45. </div>
  46. <div class="content-item2">
  47. <label class="icon-support"></label>
  48. <h4>Support</h4>
  49. <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean elit dolor, dictum id lacus in, pulvinar condimentum massa. Nunc dapibus, nunc sed suscipit fringilla, eros tortor bibendum risus, sed malesuada.</p>
  50. </div>
  51. </div>
  52. </div>
  53. <div class="content-three">
  54. <div class="content-module">
  55. <h3>LATEST WORKS</h3>
  56. <img class="img1" src="imagenes/dispositivo%20movil%20iphone%20png.png">
  57. <img class="img1" src="imagenes/dispositivo%20movil%20iphone%20png.png">
  58. <img class="img1" src="imagenes/dispositivo%20movil%20iphone%20png.png">
  59. </div>
  60. </div>
  61. </main>
  62. </body>
  63. </html>
  64.  
  65.  
  66. El codigo css del menu es este:
  67.  
  68. *{
  69. margin: 0;
  70. padding: 0;
  71. box-sizing: border-box;
  72. font-family: arial;
  73. }
  74.  
  75. .c{
  76. background: #f2f2f2;
  77. }
  78.  
  79. header{
  80. width: 98%;
  81. height: 60px;
  82. background: #1e1e1e;
  83. position: fixed;
  84. z-index: 1;
  85. margin-left: 1%;
  86. margin-right: 1%;
  87. }
  88.  
  89. .img-logo{
  90. width: 60px;
  91. margin-left: 10%;
  92. padding: 10px;
  93. }
  94.  
  95. .img-logo:hover{
  96. cursor: pointer;
  97. }
  98.  
  99. #check{
  100. display:none;
  101. }
  102.  
  103.  
  104. .icon-menu{
  105. display:none;
  106. }
  107.  
  108. .menu{
  109. width: auto;
  110. float: right;
  111. margin-top: 19px;
  112. margin-right: 7%;
  113. }
  114.  
  115. .menu ul{
  116. display: flex;
  117. }
  118.  
  119. .menu ul li{
  120. list-style: none;
  121. }
  122.  
  123. .menu ul li a{
  124. padding: 10px;
  125. text-decoration: none;
  126. font-size: 18px;
  127. font-weight: bold;
  128. color: #b7b7b7;
  129. }
  130.  
  131. .menu li a:hover{
  132. color: white;
  133. }
  134.  
  135. @media screen and (max-width:900px){
  136. .icon-menu{
  137. display: block;
  138. color:white;
  139. float: right;
  140. padding: 5px;
  141. font-size: 24px;
  142. border: 1px solid #7a7a7a;
  143. border-radius: 5px;
  144. margin-top: 10px;
  145. margin-right: 16px;
  146. }
  147.  
  148. .menu{
  149. float: left;
  150. margin-top: -4px;
  151. width: 100%;
  152. background: #1e1e1e;
  153. height: 0px;
  154. overflow: hidden;/*con este solo se mostrara lo que tenga en altura*/
  155. transition: all 300ms;
  156. }
  157.  
  158. .icon-menu:hover{
  159. background: #3f3f3f;
  160. cursor: pointer;
  161. }
  162.  
  163. .menu ul{
  164. flex-direction: column;
  165. }
  166.  
  167. .menu li a{
  168. display: block;
  169. }
  170.  
  171. #check:checked ~ .menu{
  172. height: 174px;
  173. }
  174.  
  175. ESTE ES EL CODIGO CSS DE TODO MI CONTENIDO
  176.  
  177. main{
  178. position: relative;
  179. top: 60px;
  180. }
  181.  
  182. .content-one{
  183. width: 98%;
  184. margin: auto;
  185. }
  186.  
  187. .content-portada{
  188. width: 100%;
  189. height: 319px;
  190. background-image: url(../imagenes/notebook.jpg);
  191. background-position: center center;
  192. background-size: 100%;
  193. background-repeat: no-repeat;
  194. }
  195.  
  196. @media screen and (max-width:480px){
  197. .content-portada{
  198. background-size: 480px;
  199. }
  200. }
  201.  
  202. .content-text{
  203. width: 400px;
  204. margin: auto;
  205. text-align: center;
  206. position: relative;
  207. top: 60px;
  208. }
  209.  
  210. .content-text h4{
  211. color:white;
  212. font-size: 40px;
  213. font-weight: 100;
  214. }
  215.  
  216. .content-text h2{
  217. color: white;
  218. font-size: 36px;
  219. font-weight: 100;
  220. }
  221.  
  222. .content-text h3{
  223. color:white;
  224. font-size: 40px;
  225. font-weight: bold;
  226. }
  227.  
  228. @media screen and (max-width:480px){
  229. .content-text{
  230. width: 90%;
  231. }
  232. }
  233.  
  234. /*CONTENT TWO*/
  235.  
  236. .content-two{
  237. width: 100%;
  238. padding: 40px 0px;
  239. background: #f2f2f2;
  240. }
  241.  
  242. .content-details{
  243. width: 80%;
  244. margin: auto;
  245. display: flex;
  246. flex-wrap: wrap;
  247. justify-content: center;
  248. }
  249.  
  250. .content-item2{
  251. width: 220px;
  252. text-align: center;
  253. margin: 10px 20px;
  254. }
  255.  
  256. .icon-heart, .icon-laptop, .icon-support{
  257. color:#e47171;
  258. font-size: 30px;
  259. }
  260.  
  261. /*CONTENT THREE*/
  262.  
  263. .content.three{
  264. width: 100%;
  265. background: #f7f7f7;
  266. }
  267.  
  268. .content-module{
  269. width: 80%;
  270. margin: auto;
  271. text-align: center;
  272. padding: 0px 40px;
  273. }
  274.  
  275. .content-module h3{
  276.  
  277. }
  278.  
  279. .content-module img{
  280. margin-top: 40px;
  281. margin: 20px;
  282. transition: all 300ms;
  283. }
  284.  
  285. .content-module img:hover{
  286. transform: rotate(-10deg);
  287. transition: all 300ms;
  288. cursor: pointer;
  289. }
Add Comment
Please, Sign In to add comment