Advertisement
Ag331

survey.css

Mar 15th, 2023
707
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.67 KB | None | 0 0
  1. html {
  2.     background-image: linear-gradient(115deg, rgba(58, 58, 158, 0.8), rgba(136, 136, 206, 0.7)), url(https://cdn.freecodecamp.org/testable-projects-fcc/images/survey-form-background.jpeg);
  3.     background-position: center;
  4. }
  5.  
  6. body {
  7.     max-width: px;
  8.     margin: 0 auto;
  9.     padding: 20px;
  10. }
  11. #title {
  12.     color: white;
  13.     font-weight: 400;
  14.     text-align: center;
  15.     margin-top: 0;
  16.     margin-bottom: 0.5em;
  17.     font-size: 2em;
  18.    
  19. }
  20.  
  21. #description {
  22.     font-style: italic;
  23.     font-weight: 200;
  24.     text-align: center;
  25.     text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
  26. }
  27.  
  28. h1,
  29. p {
  30.     font-family: 'Poppins', sans-serif;
  31.     color: white;
  32. }
  33.  
  34.  
  35.  
  36. form {
  37.     height: 50%;
  38.     width: 50%;
  39.     margin: 0 auto;
  40.     background-color: rgba(27, 27, 50, 0.8);
  41.     display: block;
  42.     padding: 0 1em;
  43.     text-align: center;
  44.     font-family: 'Poppins', sans-serif;
  45.     color: white;
  46. }
  47.  
  48.  
  49.  
  50. label {
  51.     display: inline-block;
  52.     margin: 1em auto;
  53. }
  54.  
  55. input,
  56. textarea,select{
  57.     display: block;
  58.     margin: 0 auto;
  59.     width: 40%;
  60.     height: 2em;
  61.     border-radius: 5px;
  62.     border: none;
  63.     padding: 0.5em;
  64.     text-align: center;
  65. }
  66.  
  67. #definitely, #maybe, #not-sure {
  68.     display: inline-block;
  69.     margin: auto;
  70. }
  71. label[for="definitely"],label[for="maybe"],label[for="not-sure"] {
  72.     margin: auto;
  73.     display:block;
  74.  
  75. }
  76.  
  77. textarea {
  78.     height: 10em;
  79.     margin-bottom: 5px;
  80.     max-width: 50%;
  81. }
  82.  
  83.  
  84.  
  85.  
  86.  
  87. /*Submit button */
  88.  
  89. #submit {
  90.     background-color: #4CAF50;
  91.     display: block;
  92.     margin: 0 auto;
  93. }
  94.  
  95. #submit:hover {
  96.     background-color: white;
  97.     display: block;
  98.     text-align: center;
  99.     margin: 0 auto;
  100.  
  101. }
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement