How to make a double line border in CSS, each line in a different color without using background-image?
For example like this:
You can do it with the :after pseudo element:
http://jsfiddle.net/aCgAA/
h2 {
padding: 5px 0;
border-bottom: solid 3px pink;
font-weight: bold;
position: relative;
margin-bottom: 8px;
}
h2:after {
content: '';
border-bottom: solid 3px blue;
width: 100%;
position: absolute;
bottom: -6px;
left: 0;
}
This degrades gracefully to a single line if the :after selector is not available.