Element specific CSS reset


/ Published in: CSS
Save to your folder(s)

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.


Copy this code and paste it in your HTML
  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. }

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.