Style Alert Buttons

STEP 1 > HTML

<button class=”btn success”>Success</button>
<button class=”btn info”>Info</button>
<button class=”btn warning”>Warning</button>
<button class=”btn danger”>Danger</button>
<button class=”btn default”>Default</button>

STEP 2 > CSS

.btn {
  border: none; /* Remove borders */
  color: white; /* Add a text color */
  padding: 14px 28px; /* Add some padding */
  cursor: pointer; /* Add a pointer cursor on mouse-over */
}

.success {background-color: #04AA6D;} /* Green */
.success:hover {background-color: #46a049;}

.info {background-color: #2196F3;} /* Blue */
.info:hover {background: #0b7dda;}

.warning {background-color: #ff9800;} /* Orange */
.warning:hover {background: #e68a00;}

.danger {background-color: #f44336;} /* Red */
.danger:hover {background: #da190b;}

.default {background-color: #e7e7e7; color: black;} /* Gray */
.default:hover {background: #ddd;}


Create Mouse-Over Buttons

STEP 1 > HTML

<button class=”btn success”>Success</button>
<button class=”btn info”>Info</button>
<button class=”btn warning”>Warning</button>
<button class=”btn danger”>Danger</button>
<button class=”btn default”>Default</button>

STEP 2 > CSS

.btn {
  border: 2px solid black;
  background-color: white;
  color: black;
  padding: 14px 28px;
  font-size: 16px;
  cursor: pointer;
}

/* Green */
.success {
  border-color: #04AA6D;
  color: green;
}

.success:hover {
  background-color: #04AA6D;
  color: white;
}

/* Blue */
.info {
  border-color: #2196F3;
  color: dodgerblue
}

.info:hover {
  background: #2196F3;
  color: white;
}

/* Orange */
.warning {
  border-color: #ff9800;
  color: orange;
}

.warning:hover {
  background: #ff9800;
  color: white;
}

/* Red */
.danger {
  border-color: #f44336;
  color: red
}

.danger:hover {
  background: #f44336;
  color: white;
}

/* Gray */
.default {
  border-color: #e7e7e7;
  color: black;
}

.default:hover {
  background: #e7e7e7;
}


Create a Favicon

favicon sizes are 16×16 (height x width)

SAVE IMAGE AS: /images/favicon.ico

ATTRIBUTE in <head> tag, location, just under <title> tag:

<link rel=”icon” type=”image/x-icon” href=”images/favicon.ico sizes=”16×16″>