Advertisement
Guest User

Untitled

a guest
Oct 4th, 2012
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 7.67 KB | None | 0 0
  1.  
  2. body  {
  3.     font-family: Georgia, serif;    /* default page font */
  4.     background: #C1D5F8;
  5.     margin: 0;          /* shorthand for all margins = 0 */
  6.     padding: 0;         /* no padding */
  7. }
  8.  
  9. p, h1, h2, h3, h4, h5, h6, li {
  10.     margin: 1ex 1em;
  11. }
  12.  
  13. /* container wraps around the rest of the page */
  14. div#container {
  15.     width: 770px;       /* sets the content width */
  16.     margin: 0 auto;     /* no top/bottom margin, centered horizontally */
  17.     background: #fff url(../images/top_banner.png) no-repeat;       /* white content background, header image */
  18. }
  19.  
  20. div#header {
  21.     height: 110px;      /* set size equal to banner image */
  22.     position: relative;
  23. }
  24.  
  25. div#midBanner {
  26.     height: 90px;
  27. }
  28.  
  29. div#content {
  30.     background-color: #fff;
  31.     padding: 5px;
  32. }
  33. /* *********STATES OF THE a  ELEMENT ********** */
  34.  
  35. #container a:link, #container a:visited {
  36.     text-decoration: none;
  37.     color: #b36b00;
  38. }
  39.  
  40. #container a:hover, #container a:active {
  41.     color: #566440;
  42.     border-bottom: 1px dashed #566440;
  43. }
  44.  
  45. /* ===== CONTACT LINK ===== */
  46.  
  47. #container #contactButton {
  48.     position: absolute;
  49.     left: 650px;
  50.     top: 0px;
  51. }
  52.  
  53. #contactButton a:link, #contactButton a:visited{
  54.     height: 29px;
  55.     width: 86px;
  56.     display: block;         /* make it a block element */
  57.     text-indent: -1000em;   /* keep the text out of the display */
  58.     background: url(../images/contact_icon_dual.gif) no-repeat left top;
  59.     border: none;           /* don't display a border */
  60. }
  61.  
  62. #contactButton a:hover, #contactButton a:active{
  63.     background-position: left bottom;   /* relocate the image to show the rollover image */
  64. }
  65.  
  66. /* ===== MAIN NAVIGATION LINKS ===== */
  67.  
  68. #header #mainMenu {          /* set the position for the nav elements */
  69.     position: absolute;
  70.     left: 320px;
  71.     bottom: 0px;
  72. }
  73.  
  74. #mainMenu ul {               /* turn off all the normal list behavior */
  75.     list-style: none;
  76.     margin: 0;
  77.     padding: 0;
  78. }
  79.  
  80. #mainMenu li {               /* turn off the normal list item behavior */
  81.     float: left;
  82.     margin: 0;
  83.     padding:0;
  84. }
  85.  
  86. #mainMenu li a:link, #mainMenu li a:visited {
  87.     font-family: "Trebuchet MS", sans-serif;
  88.     display: block;         /* block mode for graphical button */
  89.     color: #fff;            /* white text */
  90.     text-decoration: none;  /* no underline */
  91.     padding: 0 15px 0 30px; /* line up text & image */
  92.     margin-right: 10px;
  93.     line-height: 25px;
  94.     background: url(../images/nav_rollover.jpg) no-repeat left bottom;
  95.     border: none;           /* no border */
  96. }
  97.  
  98. #mainMenu li a:hover, #mainMenu li a:active {
  99.     color: #f8b449;         /* mustard color for text */
  100.     background-position: left top;      /* move image to show rollover */
  101. }
  102.  
  103. #mainMenu ul li a.current {  /* different look for "current" link */
  104.     margin-top: -5px;
  105.     height: 30px;
  106.     background: url(../images/nav_current3.jpg) no-repeat;
  107.     color: #aaa;
  108.     line-height: 25px;
  109. }
  110.  
  111. #mainMenu ul li a.current:hover {
  112.     cursor: default;
  113. }
  114.  
  115. /* ====- MAIN CONTENT ===== */
  116.  
  117. #content div#mainContent {
  118.     float: left;
  119.     width: 430px;
  120.     margin: 0 0;
  121.     padding: 0 15px;
  122. }
  123.  
  124. #mainContent p {
  125.     font-family: Georgia, serif;
  126.     font-size: 0.9em;
  127.     line-height: 1.4em;
  128.     color: #000;
  129.     margin: 1ex 0;
  130. }
  131.  
  132. #mainContent h1, #mainContent h2, #mainContent h3, #mainContent h4 {
  133.     font-family: "Trebuchet MS", sans-serif;
  134. }
  135.  
  136. #mainContent h1 {
  137.     font-size: 1.6em;
  138.     font-weight: bold;
  139.     color: #0072a2;
  140.     margin: 0 0 .4ex 0;
  141. }
  142.  
  143. #mainContent h2 {
  144.     font-size: 1.2em;
  145.     color: #0072a2;
  146.     margin: .4ex 0;
  147. }
  148.  
  149. #mainContent h4 {
  150.     font-size: 1.1em;
  151.     font-weight: bold;
  152.     color: #666;
  153.     margin: 1ex 0 -.2ex 0;
  154. }
  155.  
  156. #mainContent ul {
  157.     font-family: Georgia, serif;
  158.     font-size: 0.9em;
  159.     margin: 0 0 1.4ex 0;
  160. }
  161.  
  162. div#youtubeVid {
  163.     margin: 2ex 0 2ex 1em;
  164. }
  165.  
  166. /* ====== MAIN CONTENT LEFT MENU ====== */
  167.  
  168. #mainContent p.leftMenu {
  169.     font-family: "Trebuchet MS", sans-serif;
  170.     margin-top: 0;
  171. }
  172.  
  173. #mainContent p.leftMenu a {
  174.     color: #566440;
  175. }
  176.  
  177. #mainContent p.leftMenu a:hover {
  178.     color: #b36b00;
  179.     border: none;
  180. }
  181.  
  182. /* ===== GEAR SUBNAV ===== */
  183.  
  184. #mainContent ul#gearSubNav {
  185.     width: 340px;
  186.     margin: 0 auto;
  187.     list-style: none;
  188.     }
  189.  
  190. #mainContent ul#gearSubNav li {
  191.     float: left;
  192.     margin: 0;
  193.     padding: 0;
  194. }
  195.  
  196. #mainContent ul#gearSubNav a {
  197.     width: 88px;
  198.     height: 20px;
  199.     font-family: "Orator Std", Orator, sans-serif;
  200.     font-size: .9em;
  201.     text-align: center;
  202.     padding-top: 100px;     /* make room for the image */
  203.     margin-right: 20px;
  204.     border: none;
  205.     display: block;    
  206. }
  207.  
  208. #mainContent ul#gearSubNav a.last {
  209.         margin-right: 0;
  210. }
  211.  
  212. /* ===== GEAR SUBNAV ICONS ===== */
  213.  
  214. #mainContent ul#gearSubNav a.boards { background: url(../images//gear1off.jpg) no-repeat center top; }
  215. #mainContent ul#gearSubNav a.swimwear { background: url(../images/dot_off.jpg) no-repeat center top; }
  216.  
  217. #mainContent ul#gearSubNav a.boards:hover { background: url(../images/gear1on.jpg) no-repeat center top; }
  218. #mainContent ul#gearSubNav a.swimwear:hover { background: url(../images/dot_on.jpg) no-repeat center top; }
  219.  
  220. /* ===== GEAR SALES BOX ===== */
  221.  
  222. img#gearFloatingImage {
  223.     float: left;
  224.     padding: 15px;
  225. }
  226.  
  227. div#gearDesc {
  228.     float: right;
  229.     width: 260px;
  230.     padding-top: 20px;
  231. }
  232.  
  233. div#gearDesc h3 {
  234.     font-family: Georgia, "Times New Roman", Times, serif;
  235.     font-size: 1.2em;
  236.     color: #C47500;
  237.     border-bottom: 1px solid #344;
  238.     padding-bottom: 0.2em;
  239.     margin: 0;
  240. }
  241.  
  242. div#gearDesc p {
  243.     font-family: "Trebuchet MS", sans-serif;
  244.     font-size: .8em;
  245. }
  246.  
  247. div#gearDesc p.price {
  248.     text-align: right;
  249.     font-size: 1.2em;
  250. }
  251.  
  252. /* ===== SIDEBAR ===== */
  253.  
  254. #content div#sideBar {
  255.     float: right;
  256.     width: 265px;
  257.     padding: 0 10px;
  258.     margin: 0;
  259.     border-left: solid #aaa 1px; /* vertical line solid line  */
  260. }
  261.  
  262. #sideBar p {
  263.     font-family: "Trebuchet MS", sans-serif;
  264.     font-size: 0.8em;
  265.     line-height: 1.2em;
  266.     color: #666;
  267.     margin: 0 0 3ex 0;
  268. }
  269.  
  270. #sideBar h3 {
  271.     font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
  272.     font-size: 1em;
  273.     color: #1b9d95;
  274.     text-align: left;
  275.     margin: 1ex 0 .5ex 0;
  276. }
  277.  
  278. #sideBar img {
  279.     margin: 0 25px;
  280. }
  281.  
  282. #sideBar img.photo {
  283.     padding: 5px;
  284.     border: 1px solid #999;
  285. }
  286.  
  287. #sideBar ol {
  288.     margin: .5em 0 1.5em 0 ;
  289. }
  290.  
  291. #sideBar li {
  292.     font-family: "Trebuchet MS", sans-serif;
  293.     font-size: 0.8em;
  294.     color: #666;
  295.     margin: .2em .5em;
  296. }
  297.  
  298. /* ========================== FOOTER =========================== */
  299.  
  300. div#footer {
  301.     clear: both;  
  302.     background: #bbb url(../images/footer_banner.jpg);
  303.    /*background: #315041;*/
  304.     margin: 0 auto;
  305.     padding: 5px;
  306.     width: 760px;
  307. }
  308.  
  309. #footer p {
  310.     font-family: "Trebuchet MS", sans-serif;
  311.     font-size: .75em;
  312.     color: #315041;
  313.     margin: 0;
  314.     padding: 0;
  315.     text-align: center;
  316. }
  317.  
  318. #footer a {
  319.     color: #1b9d95;
  320.     text-decoration: none;
  321. }
  322. /* Styles for the contact form. */
  323.  
  324. form {
  325.     margin: 0 0 0 20px;
  326. }
  327.  
  328. form h2 {
  329.     color: #036;
  330.     font-size: 80%;
  331.     font-weight: bold;
  332.     margin: 0 0 5px 10px;
  333. }
  334.  
  335. .formbox {
  336.     width: 250px;
  337. }
  338. .warning {
  339.     font-weight: bold;
  340.     color: #f00;
  341. }
  342.  
  343. /* this wont work because #mainContent p overrides any style applied to p */
  344. p.red
  345. {
  346. font-weight: bold;
  347. color: red;
  348. }
  349.  
  350. fieldset {
  351.     border: none;
  352. }
  353.  
  354. /* Setting display to block forces the label for each form element onto a line of its own. */
  355.  
  356. label {
  357.     font-weight: bold;
  358.     color: #036;
  359.     display: block;
  360. }
  361.  
  362. /* ===== miscellaneous styles ===== */
  363.  
  364. .clear { clear: both }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement