Advertisement
HerdaDwiSulistianto

Herda Dwi Sulistianto_12191695

Apr 23rd, 2020
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.59 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Praktik Responsive Desain</title>
  5. <meta content ='width=device-width, initial-scale=1, maximum-scale=1' name='viewport'>
  6. <link rel="stylesheet" type="text/css" href="assets/css/style.css">
  7. <link rel="stylesheet" type="text/css" href="assets/css/mediaquery.css">
  8. </head>
  9. <body>
  10.  
  11. <header>
  12. <h1 class="judul"> Praktik Responsive Desain</h1>
  13. <p class="deskripsi">Pertemuan 12 – Praktik Layout Responsive Desain Tanpa Framework.</p>
  14. </header>
  15.  
  16. <div class="wrap">
  17.  
  18. <nav class="menu">
  19. <ul><li><a href="#">Home</a></li>
  20. <li><a href="#">Tutorial</a></li>
  21. <li><a href="#">Kontak</a></li>
  22. </ul>
  23. </nav>
  24.  
  25.  
  26. <aside class="sidebar">
  27. <div class="widget">
  28. <h2>Tutorial</h2>
  29. <p>Lorem ipsum dolor sit amet, consectetur
  30. </div>
  31. <div class="widget">
  32. <h2>Ebook Gratis</h2>
  33. <p>Lorem ipsum dolor sit amet, consectetur
  34. </div>
  35. </aside>
  36.  
  37. <div class="blog">
  38. <div class="conteudo">
  39. <div class="post-info">Di Posting Oleh <b>Admin</b></div>
  40. <img src="assets/img/1.jpg">
  41. <h1> Full Responsive </h1>
  42. <hr>
  43. <p>
  44. Lorem ipsum dolor sit amet, consectetur adipisicing elit,
  45. </p>
  46. <a href="#" class="continue-lendo">Selengkapnya -</a>
  47. </div>
  48. <div class="conteudo">
  49. <div class="post-info">Di Posting Oleh <b>Admin</b></div>
  50. <img src="assets/img/2.jpg">
  51. <hl> About Wireframe </hl>
  52. <hr>
  53. <p>
  54. Lorem ipsum dolor sit amet, consectetur adipisicing elit,
  55. </p>
  56. <a href="#" class="continue-lendo">Selengkapnya -</a>
  57. </div>
  58. </div>
  59.  
  60. </div>
  61. </body>
  62. </html>
  63.  
  64. body {
  65. background: #eee;
  66. margin:0;
  67. font-family: ‘Open Sans’, sans-serif;
  68. }
  69.  
  70. hr {
  71. border:0;
  72. background:#dedede;
  73. height:1px;
  74. }
  75.  
  76. header{
  77. text-align: center;
  78. text-align: center;
  79. color: #232323;
  80. }
  81.  
  82. header .judul{
  83. font-size:17pt;
  84. }
  85.  
  86. header .deskripsi{
  87. font-size:11pt;
  88. }
  89.  
  90. .wrap {
  91. width: 950px;
  92. margin:25px auto;
  93. }
  94.  
  95. nav.menu ul {
  96. overflow:hidden;
  97. color:#fff;
  98. list-style: none;
  99. float:left;
  100. padding:0;
  101. width: 650px;
  102. margin:0 0 0;
  103. background: #950a31;
  104. }
  105.  
  106. nav.menu ul li {
  107. margin:0;
  108. float:left;
  109. }
  110.  
  111. nav.menu ul a {
  112. padding:25px;
  113. display:block;
  114. font-weight:600;
  115. font-size: 16px;
  116. color:#fff;
  117. text-transform: uppercase;
  118. transition: all 0.5s ease;
  119. text-decoration: none;
  120. }
  121. nav.menu ul a:hover {
  122. text-decoration: underline;
  123. background:#f42064;
  124. }
  125.  
  126. .sidebar {
  127. Float:right;
  128. Width:275px;
  129. }
  130.  
  131. .sidebar .widget {
  132. padding:25px;
  133. margin:0 0 25px;
  134. background:#fff;
  135. border-bottom: 2px solid #fff;
  136. transition: all 0.5s ease;
  137. }
  138.  
  139. .sidebar .widget:hover {
  140. border-bottom: 2px solid #3498db;
  141. }
  142.  
  143. sidebar .widget h2 {
  144. padding:0;
  145. margin:0 0 0 15px;
  146. color:#3498db;
  147. font-size: 18px;
  148. font-weight:800;
  149. text-transform: uppercase;
  150. }
  151.  
  152. .sidebar .widget p {
  153. font-size: 14px;
  154. }
  155.  
  156. .sidebar .widget p:last-child {
  157. margin:0;
  158. }
  159.  
  160. .blog {
  161. float:left;
  162. }
  163.  
  164. .conteudo {
  165. width:600px;
  166. padding:25px;
  167. margin;25px auto;
  168. background: #fff;
  169. border:1px solid #dedede;
  170. }
  171.  
  172. .conteudo img {
  173. min-width: 650px;
  174. margin;0 0 25 -25px;
  175. max-width: 650PX;
  176. }
  177.  
  178. .conteudo h1 {
  179. Padding:0;
  180. margin:0 0 15px;
  181. font-weight: normal;
  182. color:#666;
  183. font-family: Georgia;
  184. }
  185.  
  186. .conteudo p:last-child {
  187. margin: 0;
  188. }
  189.  
  190. .conteudo .continue-lendo {
  191. color:#000;
  192. transition: all 0.5s ease;
  193. text-decoration: none;
  194. font-weight: 700;
  195. }
  196.  
  197. .conteudo .continue-lendo:hover {
  198. margin-left:10px;
  199. }
  200.  
  201. .post-info {
  202. float: right;
  203. font-size: 12px;
  204. margin: -10px 0 15px;
  205. text-transform: uppercase;
  206. }
  207.  
  208. @media screen and (max-width: 960px) {
  209. .header{
  210. position: inherit;
  211. }
  212. .wrap {
  213. width: 93.75%;
  214. margin: 25px auto;
  215. }
  216. .sidebar {
  217. width: 100%;
  218. margin: 25px 0 0;
  219. float: right;
  220. }
  221. .sidebar .widget{
  222. padding: 5%;
  223. }
  224. nav.menu ul{
  225. width: 100%;
  226. }
  227.  
  228. nav.menu ul{
  229. float: inherit;
  230. }
  231. nav.menu ul li{
  232. float: inherit;
  233. margin: 0;
  234. }
  235. nav.menu ul a{
  236. padding: 15px;
  237. font-size: 16px;
  238. border-top: 1px solid #1abf9f;
  239. border-bottom: 1px solid #f42064;
  240. }
  241. .blog{
  242. width: 90%;
  243. }
  244. .conteudo{
  245. float: inherit;
  246. margin: 0 auto 25px;
  247. width: 101%;
  248. border: 1px solid #dedede;
  249. padding: 5%;
  250. background: #fff;
  251. }
  252. .conteudo img{
  253. max-width: 110%;
  254. margin: 0 0 25px -5%;
  255. min-width: 110%;
  256. }
  257. .conteudo .continue-lendo-hover{
  258. margin-left: 0;
  259. }
  260. }
  261.  
  262. @media screen and (max-width: 460px){
  263.  
  264. nav.menu ul a{
  265. padding: 15px;
  266. font-size: 14px;
  267. }
  268. .sidebar {
  269. display: none;
  270. }
  271. .post-info{
  272. display: none;
  273. }
  274.  
  275. .conteudo{
  276. margin: 25px auto;
  277. }
  278. .conteudo img{
  279. margin: -5% 0 25px -5%;
  280. }
  281. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement