Posted By

marcusrosentrater on 07/22/08


Tagged

css reset defaults


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

SpinZ
chianess
Milad


Element specific CSS reset


 / Published in: CSS
 

URL: http://www.w3schools.com/css/css_reference.asp

This will reset your style properties to the default values, specific to an element and its children. Here are the all the properties that need to be set to default that also don't break modern browsers.... or less then modern, like IE 4/5.

  1. /* selector for element and children */
  2. #parent-element,#parent-element *,#parent-element a:hover,#parent-element a:visited,#parent-element a:active{
  3. background:none;
  4. border:none;
  5. bottom:auto;
  6. clear:none;
  7. cursor:default;
  8. /* didn't really know what the default for display should be*/
  9. /*display:inline;*/
  10. float:none;
  11. font-family:Arial, Helvetica, sans-serif;
  12. font-size:medium;
  13. font-style:normal;
  14. font-weight:normal;
  15. height:auto;
  16. left:auto;
  17. letter-spacing:normal;
  18. line-height:normal;
  19. max-height:none;
  20. max-width:none;
  21. min-height:0;
  22. min-width:0;
  23. overflow:visible;
  24. position:static;
  25. right:auto;
  26. text-align:left;
  27. text-decoration:none;
  28. text-indent:0;
  29. text-transform:none;
  30. top:auto;
  31. visibility:visible;
  32. white-space:normal;
  33. width:auto;
  34. z-index:auto;
  35. }

Report this snippet  

You need to login to post a comment.