Horje

How to set Default CSS Settings for HTML <hr> Tag

Most browsers will display the <hr> element with the following default values
index.html
Example: HTML
<style>
hr { 
  display: block;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  margin-left: auto;
  margin-right: auto;
  border-style: inset;
  border-width: 1px;
} 
</style>

Output should be:

How to set Default CSS Settings for HTML <hr> Tag




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin