Here's a neat CSS trick, if you want to reset all the margins ( or any other applicable attribute for all elements ).
Code:
<style>
* {
margin: 0px;
}
</style> To keep things more obvious, we look at the following page.
Code:
<html>
<head>
<style>
* {
border: 2px solid #000;
}
</style>
<body>
<table width="50%">
<tr><td>
<p>para with <b>bold</b></p>
<h1>H1</h1>
</td></tr>
</body>
</html> This shows every single element of the HTML document with a 2px solid black border.
A more practical use for this would be to reset all the margins of a document to 0.
and then style the individual elements / tags to use user defined margins / padding ..