Advertisement
Jabo2531

CSS

Sep 8th, 2020
1,994
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 4.58 KB | None | 0 0
  1. body {
  2.   background-color:blue;
  3. }
  4.  
  5.  
  6. * {box-sizing: border-box;}
  7.  
  8. /* Style the navbar */
  9. .topnav {
  10.   overflow: hidden;
  11.   background-color: #555;
  12. }
  13. .topnav input[type=text] {
  14.   padding: 6px;
  15.   margin-top: 8px;
  16.   margin-bottom: 8px;
  17.   margin-left: 16px;
  18.   font-size: 17px;
  19.   border: none;
  20.   width: 150px;
  21. }
  22. /* SEARCH CONTAINER */
  23. .topnav .search-container {
  24.   float: left;
  25. }
  26. .topnav .search-container button {
  27.   float: right;
  28.   padding: 6px;  
  29.   margin-top: 8px;
  30.   margin-right: 16px;
  31.   background: #ddd; /*Search Button Color*/
  32.   font-size: 17px;
  33.   border: none;
  34.   cursor: pointer;
  35. }
  36. .topnav .search-container button:hover {
  37.   background: #ccc; /*Color for Search button when moused over*/
  38. }
  39.  
  40. /* LOGIN CONTAINER */
  41. .topnav .login-container{
  42.   float: right;
  43. }
  44.  
  45. .topnav .login-container button {
  46.   float: right;
  47.   padding: 6px;
  48.   margin-top: 8px;
  49.   margin-right: 16px;
  50.   background: #ddd;  /*Login Button Color*/
  51.   font-size: 17px;
  52.   border: none;
  53.   cursor: pointer;
  54. }
  55.  
  56. .topnav .login-container button:hover {
  57.   background: #ccc; /*Color for Login button when moused over*/
  58. }
  59.  
  60. /* REGISTER CONTAINER */
  61. .topnav .register-container{
  62.   float: right;
  63. }
  64.  
  65. .topnav .register-container button {
  66.   float: right;
  67.   padding: 6px;
  68.   margin-top: 8px;
  69.   margin-right: 16px;
  70.   background: #ddd;  /*register Button Color*/
  71.   font-size: 17px;
  72.   border: none;
  73.   cursor: pointer;
  74. }
  75.  
  76. .topnav .register-container button:hover {
  77.   background: #ccc; /*Color for register button when moused over*/
  78. }
  79.  
  80.   }
  81.   /* Add responsiveness - On small screens, display the navbar vertically instead of horizontally */
  82. @media screen and (max-width: 600px) {
  83.   .topnav .login-container, .topnav .search-container, .register-container {
  84.     float: none;
  85.   }
  86.  
  87.   .topnav input[type=text] {
  88.     border: 1px solid #ccc;
  89.   }
  90.  
  91. }
  92.  
  93. /* For Tabs Set height of body and the document to 100% to enable "full page tabs" */
  94. body, html {
  95.     height: 100%;
  96.     margin: 0;
  97.     font-family: Arial;
  98.   }
  99.  
  100.   /* Style tab links */
  101.   .tablink {
  102.     background-color: #555;
  103.     color: white;
  104.     float: left;
  105.     border: none;
  106.     outline: none;
  107.     cursor: pointer;
  108.     padding: 14px 16px;
  109.     font-size: 17px;
  110.     width: 50%; /*NEED TO CHANGE THIS VALUE IF YOU ARE GOING TO ADD MORE TABS 25% FOR 4 TABS 33% FOR 3 TABS*/
  111.   }
  112.  
  113.   .tablink:hover {
  114.     background-color: #777;
  115.   }
  116.  
  117.   /* Style the tab content (and add height:100% for full page content) */
  118.   .tabcontent {
  119.     color: white;
  120.     display: none;
  121.     padding: 100px 20px;
  122.     height: 100%;
  123.   }
  124.  
  125.   #Home {background-color:#1A7EFF;}
  126.   #Auctions {background-color:#4C9BFF;}
  127.   /*#Contact {background-color: blue;}*/
  128.   /*#About {background-color: orange;}*/
  129.  
  130. /* BOTTOM NAV BAR */
  131.  
  132. /* Place the navbar at the bottom of the page, and make it stick */
  133. .navbar {
  134.   background-color: #333;
  135.   overflow: hidden;
  136.   position: fixed;
  137.   bottom: 0;
  138.   width: 100%;
  139. }
  140.  
  141. /* Style the links inside the navigation bar */
  142. .navbar a {
  143.   float: left;
  144.   display: block;
  145.   color: #f2f2f2;
  146.   text-align: center;
  147.   padding: 14px 16px;
  148.   text-decoration: none;
  149.   font-size: 17px;
  150. }
  151.  
  152. /* Change the color of links on hover */
  153. .navbar a:hover {
  154.   background-color: #ddd;
  155.   color: black;
  156. }
  157.  
  158. /* Add a color to the active/current link */
  159. .navbar a.active {
  160.   background-color: #1A7EFF;
  161.   color: white;
  162. }
  163. /* BOTTOM NAV BAR */
  164.  
  165.  
  166. /* Login and Registration form*/
  167.  
  168. /* Add padding to containers */
  169. .container {
  170.   padding: 16px;
  171. }
  172.  
  173. /* Full-width input fields */
  174. input[type=text], input[type=password] {
  175.   width: 100%;
  176.   padding: 15px;
  177.   margin: 5px 0 22px 0;
  178.   display: inline-block;
  179.   border: none;
  180.   background: #f1f1f1;
  181. }
  182.  
  183. input[type=text]:focus, input[type=password]:focus {
  184.   background-color: #ddd;
  185.   outline: none;
  186. }
  187.  
  188. /* Overwrite default styles of hr */
  189. hr {
  190.   border: 1px solid #f1f1f1;
  191.   margin-bottom: 25px;
  192. }
  193.  
  194. /* Set a style for the submit/register button */
  195. .registerbtn {
  196.   background-color: #ddd;
  197.   color: white;
  198.   padding: 16px 20px;
  199.   margin: 8px 0;
  200.   border: none;
  201.   cursor: pointer;
  202.   width: 100%;
  203.   opacity: 0.9;
  204. }
  205.  
  206. .registerbtn:hover {
  207.   opacity:1;
  208. }
  209.  
  210. /* Add a blue text color to links */
  211. a {
  212.   color: dodgerblue;
  213. }
  214.  
  215. /* Set a grey background color and center the text of the "sign in" section */
  216. .signin {
  217.   background-color: #f1f1f1;
  218.   text-align: center;
  219. }
  220.  
  221.  
  222. /*NEED TO DO LOGIN BUTTON*/
  223. .loginbtn {
  224.   background-color: #ddd;
  225.   color: white;
  226.   padding: 16px 20px;
  227.   margin: 8px 0;
  228.   border: none;
  229.   cursor: pointer;
  230.   width: 100%;
  231.   opacity: 0.9;
  232. }
  233. .loginbtn:hover {
  234.   opacity:1;
  235. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement