Guest User

Untitled

a guest
Jul 20th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.54 KB | None | 0 0
  1. @charset "UTF-8";
  2.  
  3. * {
  4. font-family: Helvetica, Arial, sans-serif;
  5. }
  6.  
  7. a {
  8. text-decoration: none;
  9. color: #b50101;
  10. }
  11.  
  12. a:hover {
  13. text-decoration: underline;
  14. color: #4f0101;
  15. }
  16.  
  17. body {
  18. background: #FFFFFF;
  19. margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
  20. padding: 100px;
  21. text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
  22. color: #000000;
  23. }
  24.  
  25. #container {
  26. width: 670px; /* using 20px less than a full 800px width allows for browser chrome and avoids a horizontal scroll bar */
  27. height: 374px;
  28. background: white url(../images/websiteagain_03.png);
  29. margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
  30. border: 1px solid #4f0202;
  31. text-align: left; /* this overrides the text-align: center on the body element. */
  32. }
  33.  
  34. #logo {
  35. float: left;
  36. margin: 20px;
  37. }
  38.  
  39. #logo a,
  40. #logo a img {
  41. text-decoration: none;
  42. border: none;
  43. }
  44.  
  45. #header {
  46. padding: 30px 0px 0px 240px; /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */
  47. height: 46px;
  48. }
  49.  
  50. #header h1 {
  51. margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */
  52. padding: 10px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
  53. }
  54.  
  55. #mainContent {
  56. padding: 0 20px; /* remember that padding is the space inside the div box and margin is the space outside the div box */
  57. margin: 28px 42px 44px 260px;
  58. height: 225px;
  59. background-image: url(../images/cbg_03.png);
  60. border: 1px solid #4f0000;
  61. font-size: 12px
  62. }
  63.  
  64. #mainContent .links {
  65. font-size: 12px
  66. }
  67.  
  68. #mainContent input[type=text],
  69. #mainContent textarea {
  70. width: 100%;
  71. }
  72.  
  73. #footer {
  74. padding: 0 0px; /* this padding matches the left alignment of the elements in the divs that appear above it. */
  75.  
  76. }
  77. #footer p {
  78. margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
  79. padding: 0px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
  80. padding-top: 0px;
  81. font-size: 9px;
  82. }
Add Comment
Please, Sign In to add comment