Advertisement
Guest User

Untitled

a guest
Sep 20th, 2014
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.95 KB | None | 0 0
  1. <html>
  2. <body>
  3. <style>
  4.  
  5. .row {
  6. float:left;
  7. border: 1px solid yellow;
  8. width: 100%;
  9. overflow: auto;
  10. }
  11.  
  12. .cell {
  13. float: left;
  14. border: 1px solid red;
  15. width: 200px;
  16. height: 100px;
  17. }
  18. </style>
  19.  
  20. <div class="row">
  21. <div class="cell">a</div>
  22. <div class="cell">b</div>
  23. <div class="cell">c</div>
  24. </div>
  25.  
  26.  
  27. </body>
  28. </html>
  29.  
  30. <html>
  31. <body>
  32. <style>
  33.  
  34. .row {
  35. float:left;
  36. border: 1px solid yellow;
  37. width: 100%;
  38. overflow: auto;
  39. white-space: nowrap;
  40. }
  41.  
  42. .cell {
  43. display: inline-block;
  44. border: 1px solid red;
  45. width: 200px;
  46. height: 100px;
  47. }
  48. </style>
  49.  
  50. <div class="row">
  51. <div class="cell">a</div>
  52. <div class="cell">b</div>
  53. <div class="cell">c</div>
  54. </div>
  55.  
  56.  
  57. </body>
  58. </html>
  59.  
  60. <?xml version="1.0" encoding="UTF-8"?>
  61. <!DOCTYPE html>
  62. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  63. <head>
  64. <title>XHTML5 Menu Demonstration</title>
  65. <style type="text/css">
  66. * {border: 0; box-sizing: content-box; color: #f0f; font-size: 10px; margin: 0; padding: 0; transition-property: background-color, background-image, border, box-shadow, color, float, opacity, text-align, text-shadow; transition-duration: 0.5s; white-space: nowrap;}
  67. a:link {color: #79b; text-decoration: none;}
  68. a:visited {color: #579;}
  69. a:focus, a:hover {color: #fff; text-decoration: underline;}
  70. body {background-color: #444; overflow-x: hidden;}
  71. body > header {background-color: #000; height: 64px; left: 0; position: absolute; right: 0; z-index: 2;}
  72. body > header > nav {height: 32px; margin-left: 16px;}
  73. body > header > nav a {font-size: 24px;}
  74. main {border-color: transparent; border-style: solid; border-width: 64px 0 0; bottom: 0px; left: 0; overflow-x: hidden !important; overflow-y: auto; position: absolute; right: 0; top: 0; z-index: 1;}
  75. main > * > * {background-color: #000;}
  76. main > section {float: left; margin-top: 16px; width: 100%;}
  77. nav[id='menu'] {overflow: visible; width: 20000px;}
  78. nav[id='menu'] > ul {height: 32px;}
  79. nav[id='menu'] > ul > li {float: left; width: 140px;}
  80. nav[id='menu'] > ul > li > ul {background-color: rgba(0, 0, 0, 0.8); display: none; margin-left: -50px; width: 240px;}
  81. nav[id='menu'] a {display: block; height: 32px; line-height: 32px; text-align: center; white-space: nowrap;}
  82. nav[id='menu'] > ul {float: left; list-style:none;}
  83. nav[id='menu'] ul li:hover ul {display: block;}
  84. p, p *, span, span * {color: #fff;}
  85. p {font-size: 20px; margin: 0 14px 0 14px; padding-bottom: 14px; text-indent: 1.5em;}
  86. .hidden {display: none;}
  87. .width_100 {width: 100%;}
  88. </style>
  89. </head>
  90.  
  91. <body>
  92.  
  93. <main>
  94. <section style="height: 2000px;"><p>Hover the first menu at the top-left.</p></section>
  95. </main>
  96.  
  97. <header>
  98. <nav id="location"><a href="">Example</a><span> - </span><a href="">Blog</a><span> - </span><a href="">Browser Market Share</a></nav>
  99. <nav id="menu">
  100. <ul>
  101. <li><a href="" tabindex="2">Menu 1 - Hover</a>
  102. <ul>
  103. <li><a href="" tabindex="2">Menu 1 B</a></li>
  104. <li><a href="" tabindex="2">Menu 1 B</a></li>
  105. <li><a href="" tabindex="2">Menu 1 B</a></li>
  106. <li><a href="" tabindex="2">Menu 1 B</a></li>
  107. <li><a href="" tabindex="2">Menu 1 B</a></li>
  108. <li><a href="" tabindex="2">Menu 1 B</a></li>
  109. <li><a href="" tabindex="2">Menu 1 B</a></li>
  110. <li><a href="" tabindex="2">Menu 1 B</a></li>
  111. </ul>
  112. </li>
  113. <li><a href="" tabindex="2">Menu 2</a></li>
  114. <li><a href="" tabindex="2">Menu 3</a></li>
  115. <li><a href="" tabindex="2">Menu 4</a></li>
  116. <li><a href="" tabindex="2">Menu 5</a></li>
  117. <li><a href="" tabindex="2">Menu 6</a></li>
  118. <li><a href="" tabindex="2">Menu 7</a></li>
  119. <li><a href="" tabindex="2">Menu 8</a></li>
  120. <li><a href="" tabindex="2">Menu 9</a></li>
  121. <li><a href="" tabindex="2">Menu 10</a></li>
  122. <li><a href="" tabindex="2">Menu 11</a></li>
  123. <li><a href="" tabindex="2">Menu 12</a></li>
  124. <li><a href="" tabindex="2">Menu 13</a></li>
  125. <li><a href="" tabindex="2">Menu 14</a></li>
  126. <li><a href="" tabindex="2">Menu 15</a></li>
  127. <li><a href="" tabindex="2">Menu 16</a></li>
  128. <li><a href="" tabindex="2">Menu 17</a></li>
  129. <li><a href="" tabindex="2">Menu 18</a></li>
  130. </ul>
  131. </nav>
  132. </header>
  133.  
  134. </body>
  135. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement