Advertisement
Guest User

Untitled

a guest
Apr 25th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.71 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3.  
  4. <head>
  5. <meta charset="UTF-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
  7.  
  8. <title></title>
  9. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
  10. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
  11. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js"></script>
  12. <link rel="stylesheet" href="style.css" type="text/css" media="screen" />
  13. </head>
  14.  
  15. <body>
  16. <section class="container-fluid">
  17.  
  18. <div class="main">
  19.  
  20. <div class="topnav">
  21. <div id="menu" class="collapse">
  22. <div class="menu"><a class="#Home">Home</a></div>
  23. <div class="menu"><a href="#News">News</a></div>
  24. <div class="menu"><a href="#Gallery">Gallery</a></div>
  25. <div class="menu"><a href="#About us">About us</a></div>
  26. <div class="menu" style="border-right:none;"><a href="#Contact">Contact</a></div>
  27. </div>
  28. <a href="javascript:void(0);" class="icon" onclick="myFunction()">&#9776;</a>
  29. </div>
  30.  
  31. <div style="width: 100%; margin: 0 auto; position: relative;">
  32. <div class="row-full">
  33. <div class="column-1">
  34. <div class="black">&nbsp;</div>
  35. </div>
  36.  
  37. <div class="column-2">
  38. <div class="row-up-1">
  39. <div class="red"> &nbsp; </div>
  40. <div class="medium-blue">&nbsp;</div>
  41. <div class="dark-blue">&nbsp;</div>
  42. <div class="red-corner">&nbsp;</div>
  43. </div>
  44. <div class="row-up-1">
  45. <div class="white">Free TExt Free TExt Free TExt Free</div>
  46. <div class="light-blue">&nbsp;</div>
  47. </div>
  48. </div>
  49. </div>
  50.  
  51. <div class="div-table">
  52. <div class="table-row">
  53. <div class="table-cell">
  54. <div class="resize-blocks" style="background:#fe0000; margin:0 0 0 50px; float:left; "></div> /* אדום */
  55. </div>
  56. <div class="table-cell">
  57. <div style="background:#1a247b; margin:0px; width: 280px; padding-top:0px; left:20px;
  58. height: 270px; float:left;"></div> /* כחול כהה */
  59. </div>
  60. <div class="table-cell">
  61. <div class="resize-blocks" style="background:#fe0000; margin-left:30px; float:right;" ></div> /* אדום */
  62. </div>
  63. <div class="table-cell">
  64. <div style="background:#0D62B3; margin:0px; width: 290px;
  65. height: 270px; float:left;"></div> /* כחול בינוני */
  66. </div>
  67. <div class="table-cell" style="vertical-align: bottom";>
  68. <div style="background:#fe0000; display:block; margin-left:30px; width: 270px;
  69. height: 280px;"></div> /* אדום */
  70. </div>
  71. </div>
  72.  
  73. <div class="table-row">
  74. <div class="table-cell">
  75. <div style="background:#0D62B3; margin-left:50px; width: 280px;
  76. height: 270px; float:left; display:inline-block;"></div> /* כחול בינוני */
  77. </div>
  78. <div class="table-cell">
  79. <div class="resize-blocks" style="background:#fe0000; margin:30 0 0 0px; left:20px;"></div> /* אדום */
  80. </div>
  81. <div class="table-cell">
  82. <div style="background:#63c2c8; float:right; width: 280px;
  83. height: 270px; margin: 0 0 0 15px; display:inline-block;"></div> /* תכלת */
  84. </div>
  85. <div class="table-cell">
  86. <div class="resize-blocks red" style="background:#fe0000; margin:30 0 30 55px; width: 270px;
  87. height: 270px; float:left;"></div> /* אדום */
  88. </div>
  89. <div class="table-cell">
  90. <div class="red" style="background:#1a247b; float:left; margin: 0 0 0 30px; width: 270px;
  91. height: 270px;"></div> /* כחול כהה */
  92. </div>
  93. </div>
  94.  
  95.  
  96. </div>
  97.  
  98.  
  99.  
  100. <!--
  101. <div class="row-full">
  102. <div class="column-left">
  103. <div class="row-up-2">
  104. <div class="resize-blocks" style="background:#fe0000; margin:30 0 30 55px; width: 24%;
  105. height: 270px; float:left; display:inline-block;"></div> /* אדום */
  106. <div class="resize-blocks" style="background:#1a247b; margin:0px; width: 346px;
  107. height: 270px; float:left;"></div> /* כחול כהה */
  108. </div>
  109. <div class="row-down-2">
  110. <div class="resize-blocks" style="background:#0D62B3; margin-left:30px; width: 346px;
  111. height: 270px; float:left; display:inline-block;"></div> /* כחול בינוני */
  112. <div class="resize-blocks" style="background:#fe0000; margin:30 0 30 55px; width: 325px;
  113. height: 326px; float:left; display:inline-block;"></div> /* אדום */
  114.  
  115. </div>
  116. </div>
  117.  
  118. <div class="column-middle">
  119. <div class="row-up-2">
  120. <div class="red" style="display:inline-block; margin-left:30px;" ></div> /* אדום */
  121. <div class="resize-blocks"style="background:#0D62B3; margin:0px; width: 346px;
  122. height: 270px; float:left;"></div> /* כחול בינוני */
  123. </div>
  124. <div class="row-down-2">
  125. <div class="resize-blocks red" style="background:#63c2c8; float:left; width: 325px;
  126. height: 326px; margin: 0 0 0 15px; display:inline-block;"></div> /* תכלת */
  127. <div class="resize-blocks red" style="background:#fe0000; margin:30 0 30 55px; width: 325px;
  128. height: 326px; float:left;"></div> /* אדום */
  129. </div>
  130. </div>
  131.  
  132. <div class="column-right">
  133. <div class="row-3">
  134. <div class="red" style="background:#fe0000; display:block; margin-left:30px; width: 325px;
  135. height: 356px;"></div> /* אדום */
  136. <div class="red" style="background:#1a247b; float:left; margin: 0 0 0 30px; width: 325px;
  137. height: 356px;"></div> /* כחול כהה */
  138. </div>
  139.  
  140. </div>
  141.  
  142. </div>
  143.  
  144. -->
  145.  
  146.  
  147.  
  148. </div>
  149.  
  150. </div>
  151. </section>
  152.  
  153. <script>
  154. function myFunction() {
  155. /*
  156. // לא צריכים את זה יותר!
  157. var x = document.getElementById("myTopnav");
  158. if (x.className === "topnav") {
  159. x.className += " responsive";
  160. } else {
  161. x.className = "topnav";
  162. }
  163. */
  164.  
  165. var myMobileMenu = document.querySelector('#menu');
  166. if(myMobileMenu.className === 'expand') {
  167. myMobileMenu.className = 'collapse';
  168. }
  169. else {
  170. myMobileMenu.className = 'expand';
  171. }
  172. }
  173. </script>
  174. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script>
  175. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
  176. </body>
  177. </html>
  178.  
  179.  
  180.  
  181. @import 'https://fonts.googleapis.com/css?family=Roboto:400,300,500,700,900,300italic,400italic,500italic,700italic,900italic';
  182. html,
  183. body {
  184. height: 100%;
  185. direction: ltr;
  186. }
  187.  
  188. body {
  189. font-family: Calibri;
  190. margin: 0;
  191. padding: 0;
  192. font-size: 100%
  193. }
  194.  
  195. div.main {
  196. width: 100%;
  197. max-width: 1920px;
  198. background: #9932CC; /* לבן #FFF */
  199. margin: 0 auto;
  200. position: relative;
  201. }
  202.  
  203. p.clear{
  204. height:0;
  205. clear:both;
  206. }
  207.  
  208.  
  209. div.row-full{
  210. width:100%;
  211. margin:0px;
  212. }
  213.  
  214. div.column-1{
  215. width:25%;
  216. display:inline-block;
  217. }
  218.  
  219. div.column-2{
  220. width:75%;
  221. float:right;
  222. }
  223.  
  224. div.row-up-1{
  225. width:100%;
  226. overflow:hidden;
  227. }
  228.  
  229. div.black {
  230. width: 70%;
  231. height: 565px;
  232. background: #000;
  233. float:left;
  234. padding:0 px;
  235. margin-left: 50px;
  236. }
  237.  
  238. div.red {
  239. width: 22%;
  240. height: 270px;
  241. background: #F80606;
  242. float:left;
  243. margin: 0px;
  244. }
  245.  
  246. div.medium-blue {
  247. width: 24%;
  248. height: 270px;
  249. background: #0D62B3; /* כחול בינוני */
  250. float:left;
  251. }
  252.  
  253. div.dark-blue {
  254. width: 24%;
  255. height: 270px;
  256. background: #1A247B; /* כחול כהה */
  257. float:left;
  258. margin: 0 0 0 55px;
  259. }
  260.  
  261. div.red-corner {
  262. width: 22%;
  263. height: 270px;
  264. background: #F80606;
  265. float:left;
  266. }
  267.  
  268. div.light-blue {
  269. width: 22%;
  270. height: 270px;
  271. background: #63C2C8; /* תכלת */
  272. float:left;
  273. display: block;
  274. margin: 35px;
  275. }
  276.  
  277. div.white {
  278. width: 70%;
  279. height: 300px;
  280. background: #FFF;
  281. float:left;
  282. color: #000;
  283. font-size:450%;
  284. font-weight: 900;
  285. text-align:center;
  286. vertical-align: middle;
  287. line-height: 500%;
  288. padding-top:50px;
  289. }
  290.  
  291.  
  292. div.resize-blocks {
  293. width: 257px !important;
  294. height: 270px !important;
  295. }‏
  296.  
  297. div.resize-blocks-2 {
  298. width: 280px !important;
  299. height: 270px !important;
  300. }‏
  301.  
  302. div.row-up-2{
  303. width:100%;
  304. overflow:hidden;
  305. }
  306.  
  307. div.column-left .column-middle{
  308. width:40%;
  309. display: inline-block;
  310. }
  311.  
  312. div.column-right{
  313. width:20%;
  314. display: block;
  315. }
  316.  
  317.  
  318. .group-under-black {
  319. margin-top:25px;
  320. display:block;
  321. width:auto;
  322. }
  323.  
  324. .div-table {
  325. display: table;
  326. table-layout: fixed;
  327. width: 100%;
  328. }
  329.  
  330. .div-table .table-row {
  331. display: table-row;
  332. width: 100%;
  333. height: auto;
  334. position: relative;
  335. }
  336.  
  337. .div-table .table-cell {
  338. display: table-cell;
  339. width: auto;
  340. height: auto;
  341. vertical-align: middle;
  342. border: 1px solid;
  343. }
  344.  
  345.  
  346.  
  347. /*Menu */
  348.  
  349. div.topnav {
  350. overflow: hidden;
  351. max-width:1920px;
  352. height:80px;
  353. background-color: #DDDDDF; /* אפור-תפריט */
  354. margin: 0 auto 10px; /* ממרכז בצדדים ונותן רווח מלמטה */
  355. color: #000;
  356. }
  357.  
  358.  
  359. div.menu{
  360. text-align: center;
  361. padding: 0px;
  362. display: inline-block;
  363. border-right: 1px solid #8c8b8b;
  364. margin-left: 0px;
  365. margin-top: 12px;
  366. }
  367.  
  368. div.topnav a {
  369. float: left;
  370. display: block;
  371. color: #000;
  372. text-align: center;
  373. padding: 10px 20px;
  374. text-decoration: none;
  375. font-size: 20px;
  376. vertical-align:middle;
  377. }
  378.  
  379. div.topnav a:hover {
  380. color: #1C19D3;
  381. }
  382.  
  383.  
  384. div.topnav a.active {
  385. background-color: #DDDDDF;
  386. color: #000;
  387. }
  388.  
  389.  
  390. div.topnav.icon {
  391. display: none;
  392. }
  393.  
  394. /* להדביק בתחתית דף הCSS */
  395. .topnav #menu:not(.expand),
  396. .topnav #menu.expand {
  397. display: block;
  398. }
  399.  
  400. @media only screen and (max-width: 1024px) {‏
  401. .clearfix {
  402. clear: both;
  403. }
  404.  
  405. .topnav #menu:not(.expand) {
  406. display: none !important;
  407. }
  408.  
  409. .topnav #menu.expand {
  410. display: block !important;
  411. }
  412.  
  413. .topnav #menu ~ a.icon {
  414. display: inline-block !important;
  415. height: 100% !important;
  416. padding: 20px 17px 0;
  417. font-size: 23px;
  418. line-height: 23px;
  419. }
  420.  
  421. .topnav #menu {
  422. position: absolute;
  423. top:0;
  424. left:0;
  425. background: inherit;
  426. z-index: 2;
  427. min-height: calc(100% - 80px);
  428. margin-top:80px;
  429. background: rgba(221,221,223,0.9);
  430. width: 75%;
  431. }
  432.  
  433. .topnav #menu .menu {
  434. display: block;
  435. width: 100%;
  436. border-right: 0;
  437. }
  438.  
  439. .topnav #menu .menu a {
  440. display: block;
  441. width: 100%;
  442. text-align: left;
  443. float: none;
  444. padding-top: 0;
  445. }
  446.  
  447. .topnav #menu .menu:not(:last-child) {
  448. border-bottom:1px solid #8c8b8b;
  449. }
  450. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement