Posted By

shaktimaan on 06/30/06


Tagged

css


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

arcturus
talaris
fatihturan


basic css


 / Published in: CSS
 

very basic code for css

  1. body
  2. {
  3. padding:0;
  4. margin:0;
  5. }
  6. .BgImg {
  7. background-image: url(../images/search_bg.gif);
  8. background-repeat: repeat-x;
  9. }
  10. .txtbox {
  11. margin: 2px 0px 0px;
  12. border: 1px solid #575757;
  13. font-family: Verdana, Arial, Helvetica, sans-serif;
  14. font-size: 11px;
  15. color: #575757;
  16. text-align: left;
  17. vertical-align: middle;
  18. text-indent: 5px;
  19. }
  20. .spcer {
  21. font-size: 1px;
  22. }
  23. .text {
  24. font-family: Arial, Helvetica, sans-serif;
  25. font-size: 11px;
  26. color: #404040;
  27. }
  28. .text-red {
  29. font-family: Arial, Helvetica, sans-serif;
  30. font-size: 11px;
  31. color: #C20606;
  32. }
  33. ===== Main Link ====
  34. a:link, a:visited, a:active{color:#497877; text-decoration:none}
  35. a:hover{ color:#000000; text-decoration:underline}
  36.  
  37. ==== footer Links ========
  38. a.foolink:link, a.foolink:visited, a.foolink:active{color:#FF2277; text-decoration:none}
  39. a.foolink:hover{ color:#FFFFFF; text-decoration:none}
  40.  
  41. ==== main Links ========
  42. a:link, a:visited, a:active{color:#777777; text-decoration:none}
  43. a:hover{ color:#000000; text-decoration:none}
  44.  
  45. a.one:link {color: #ff0000}
  46. a.one:visited {color: #0000ff}
  47. a.one:hover {color: #ffcc00}
  48.  
  49. a.two:link {color: #ff0000}
  50. a.two:visited {color: #0000ff}
  51. a.two:hover {font-size: 150%}
  52.  
  53. .my
  54. {
  55. font-family:Verdana, Arial, Helvetica, sans-serif;
  56. font-size:10px;
  57. font-weight:normal;
  58. color:#4C6789;
  59. }
  60. .my:link{ color:#4C6789}
  61. .my:visited{ color:#4C6789}
  62. .my:hover{ color:#000000; text-decoration:none}

Report this snippet  

You need to login to post a comment.