Advertisement
gagan93

First Login Form CSS(Websters,TSG)

Feb 15th, 2015
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.77 KB | None | 0 0
  1. body
  2. {
  3.     background-color: rgb(192,192,192);
  4.     /*
  5.     this attribute describes background color of an element(body here). As we told you before also, there are three methods by which you can define color/background-color. For eg.
  6.    
  7.     METHOD 1
  8.     background-color: white;
  9.     background-color: grey;
  10.     // for common colors only
  11.  
  12.     METHOD 2
  13.     background-color: rgb(192,192,192);
  14.     RGB format defines the concentration of Red, Blue and Green. values : 0 to 255;
  15.     background-color: rgb(255,0,0); // Pure Red
  16.     background-color: rgb(0,255,0); // Pure Green
  17.     background-color: rgb(0,0,255); // Pure Blue  
  18.     background-color: rgb(0,0,0); // Pure Black  
  19.     background-color: rgb(255,255,255); // Pure White
  20.  
  21.     METHOD 3
  22.     background-color: #FFFFF;
  23.     Here after '#' we write hex code of the color. We can convert a color from RGB form to hexcode and vice versa. Hexcode is just representation of R,G and B in hexadecimal form.
  24.  
  25.     background-color: #FFFFFF; (or RGB 255,255,255 or white)
  26.     background-color: #FF0000; (RED)
  27.     background-color: #00FF00; (GREEN)
  28.     background-color: #0000FF; (BLUE)
  29.     */
  30.  
  31.     font-family: "Open sans";
  32.     /*
  33.     The name of the font, this is same as that font which we included as a "link" tag in HTML file
  34.     */
  35.  
  36. }
  37. .main
  38. {
  39.     margin: 200px auto 20px auto;
  40.     /* Top  :200px, left : auto, bottom:20px, right:auto; */
  41.  
  42.     width: 400px;
  43.     /* width of div in pixels */
  44. }
  45. .lockIcon
  46. {
  47.     width: 32px;
  48.     height: 26px;
  49.     /* Width and height of image, no rocket science */
  50. }
  51. .signin
  52. {
  53.     margin-left: 10px;
  54.     /* Margin left to the "left" side */
  55.     font-size: 32px;
  56.     /* size of font */
  57. }
  58. .upperPane
  59. {
  60.     background-color: rgb(250,82,82);
  61.  
  62.     padding : 15px;
  63.     /* Padding : inner space. Change this value to see effect if you are still confused between padding and margin */
  64.  
  65.     color: white;
  66.     /*Color of text is defined by this property */
  67.  
  68.     font-family: inherit;
  69.     /* Inherit means it "inherits" the font name from its parent, i.e. font-family here is "Open Sans" */
  70.     font-size: 28px;
  71.  
  72.     border-top-right-radius:20px;
  73.     border-top-left-radius:20px;
  74.     /* Border radius property defines the curveness of an element. You can notice that our "div" is curved from all 4 sides. But all 4 sides do not belong to one div.
  75.     Two sides belong to "upperPane" and other two to "lowerPane". So we separately set border radius (curveness) for each of the four sides; two in upperPane (top-right and top-left) and the other two in lowerPane (bottom-right and bottom-left)*/
  76. }
  77. .lowerPane
  78. {
  79.     background-color: white;
  80.     padding: 20px;
  81.     border-bottom-right-radius:20px;
  82.     border-bottom-left-radius:20px;
  83.     /* Explained at some or other point above */
  84. }
  85. .email, .pass
  86. {
  87.     color: gray;
  88.     margin-bottom: 15px;
  89. }
  90. input
  91. {
  92.     font-size: 24px;
  93.     font-family: inherit;
  94.     display: block;
  95.     margin-bottom: 15px;
  96. }
  97. .textbox
  98. {
  99.     width: 100%;
  100.     border: 0px solid white;
  101.     /* This is the syntax to give border to an element. First argument defines the thickness of border in px (pixels). Second defines the type of border (solid, dashed,etc). Third defines the color. RGB and Hex forms are also allowed here*/
  102.     background-color: rgb(238,238,238);
  103. }
  104. .submit
  105. {
  106.     background-color: #2CD777;
  107.     font-family: inherit;
  108.     font-size: 20px;
  109.     margin: 0 auto;
  110.     padding: 5px 25px 5px 25px;
  111.     color: white;
  112.     border: 0px solid white;
  113.     border-radius: 10px;
  114. }
  115. /* All the colors were picked from the image using a "color picker" tool. You can also use your own color picker tool or the one given by us to pick colors from images
  116.  
  117. HTML is overall case-insensitive (HTML and html mean the same) but it is recommended to use one case otherwise you may end up confusing yourself
  118.  
  119. CSS is overall case-sensitive (main and MAIN mean different). However values inside qoutes (like font-names) and hexcodes are case-insensitive (#2cd777 and 2CD777 mean same) */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement