Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.08 KB | None | 0 0
  1. /* STEP 2a: Set the border properties on the DIV#the-box - border-width, border-style, border-color */
  2. #the-box
  3. {
  4. border-width: 5px;
  5. border-style: solid;
  6. border-color: #0B5AE8;
  7. }
  8. /* STEP 2b: Control one of the four borders independently of the others */
  9. #the-box
  10. {
  11. border-bottom-width: 10px;
  12. }
  13. /* STEP 2c: Apply shorthand to the borders using the clock rule (TRBL) */
  14. #the-box
  15. {
  16. border-width: 10px 5px;
  17. }
  18. /* STEP 2d: Apply shorthand to the borders using the correct order of border properties width, style, color */
  19. #the-box
  20. {
  21. border: 6px solid #6136c4;
  22. }
  23. /* STEP 3a: Set padding values on the DIV#the-box element */
  24. #the-box
  25. {
  26. padding: 20px;
  27. }
  28. /* STEP 3b: Apply a background-image to the same element (controlling background-repeat, background-position, and background-size) */
  29. body
  30. {
  31. background-image: url('../images/3px-tile.png');
  32. /*background-repeat: no-repeat;
  33. background-position: center;
  34. background-size: contain;*/
  35. }
  36. /* STEP 3c: Instead, apply the same background-image to the BODY, and apply a background-color to the DIV#the-box */
  37. #the-box
  38. {
  39. /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#cedbe9+0,aac5de+17,6199c7+50,3a84c3+51,419ad6+59,4bb8f0+71,3a8bc2+84,26558b+100;Blue+Gloss */
  40. background: rgb(206,219,233); /* Old browsers */
  41. background: -moz-linear-gradient(top, rgba(206,219,233,1) 0%, rgba(170,197,222,1) 17%, rgba(97,153,199,1) 50%, rgba(58,132,195,1) 51%, rgba(65,154,214,1) 59%, rgba(75,184,240,1) 71%, rgba(58,139,194,1) 84%, rgba(38,85,139,1) 100%); /* FF3.6-15 */
  42. background: -webkit-linear-gradient(top, rgba(206,219,233,1) 0%,rgba(170,197,222,1) 17%,rgba(97,153,199,1) 50%,rgba(58,132,195,1) 51%,rgba(65,154,214,1) 59%,rgba(75,184,240,1) 71%,rgba(58,139,194,1) 84%,rgba(38,85,139,1) 100%); /* Chrome10-25,Safari5.1-6 */
  43. background: linear-gradient(to bottom, rgba(206,219,233,1) 0%,rgba(170,197,222,1) 17%,rgba(97,153,199,1) 50%,rgba(58,132,195,1) 51%,rgba(65,154,214,1) 59%,rgba(75,184,240,1) 71%,rgba(58,139,194,1) 84%,rgba(38,85,139,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  44. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#cedbe9', endColorstr='#26558b',GradientType=0 ); /* IE6-9 */
  45. }
  46. /* STEP 4a: Control the width of the DIV#the-box with a fixed unit (px) */
  47. #the-box
  48. {
  49. width: 200px;
  50. height: 200px;
  51. /*width: 70%;*/
  52. }
  53. /* STEP 4b: Change the width to a relative unit of measure (%) */
  54.  
  55. /* STEP 5a: Set the width above back to a fixed unit, then adjust the height so the the content no longer fits 50px by 20px*/
  56.  
  57. /* STEP 5b: Apply various values to the overflow property to see how to handle content that doesn't fit it's container */
  58. #the-box
  59. {
  60. overflow: scroll;
  61. margin: 10px auto;
  62. }
  63. /* STEP 6a: Change the display property of the p span element */
  64. p span
  65. {
  66. display: block;
  67. }
  68. /* STEP 6b: Manipulate the box model of the p span element */
  69. p span
  70. {
  71. border: 3px solid black;
  72. padding: 10px;
  73. margin: 5px;
  74. }
  75. /* STEP 7: Add a margin to the box using the shorthand;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement