div.chord-diagram {
	overflow: hidden;
	display: inline-block;
    vertical-align:top;
}

div.chord-diagram > div.header {
	float: left;
	clear: left;
	margin-left: -1px;
}

div.chord-diagram > div.header > div {
	position: relative;
	font-family: arial;
	font-size: 13px;
	line-height: 7px;
	text-align: center;
	width: 9px;
	height: 9px;
	float: left;
}

div.chord-diagram > div.header > div > div {
	position: absolute;
	top: 0;
	left: 1px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	border: solid #000 1px;
	background: #fff
}

div.chord-diagram > div.row {
	margin-left: 3px;
	float: left;
	clear: both;
}

div.chord-diagram > div.row > div {
	position: relative;
	width: 8px;
	height: 9px;
	border: solid #000;
	border-width: 1px 0 0 1px;
	float: left;
}

div.chord-diagram > div.row > div:last-child {
	border-width: 1px 1px 0 1px;
}

div.chord-diagram > div.header + div:not(.first) {
    margin-top:3px;
}
div.chord-diagram > div.row.first:first-child {
    margin-top:9px;
}
div.chord-diagram > div.row.first > div {
	border-width: 4px 0 0 1px;
}

div.chord-diagram > div.row.first > div:last-child {
	border-width: 4px 1px 0 1px;
}

div.chord-diagram > div.row.last > div {
	border-width: 1px 0 1px 1px;
}

div.chord-diagram > div.row.last > div:last-child {
	border-width: 1px 1px 1px 1px;
}

div.chord-diagram > div.row > div > div.barre {
	position: absolute;
	top: 2px;
	left: -3px;
	width: 12px;
	height: 3px;
	border-radius: 2px;
	border: solid #000 1px;
	background: #aaa;
	z-index: 1;
}

div.chord-diagram > div.row > div > div.barre.barre-1 {
	width: 12px;
}

div.chord-diagram > div.row > div > div.barre.barre-2 {
	width: 21px;
}

div.chord-diagram > div.row > div > div.barre.barre-3 {
	width: 30px;
}

div.chord-diagram > div.row > div > div.barre.barre-4 {
	width: 39px;
}

div.chord-diagram > div.row > div > div.barre.barre-5 {
	width: 48px;
}

div.chord-diagram > div.row > div > div.knob {
	position: absolute;
	top: 1px;
	left: -4px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	border: solid #000 1px;
	background: #aaa;
	z-index: 1;
}

div.chord-diagram > div.row > div > div.knob.right {
	left: 5px;
}

div.chord-diagram > div.row > div.fretno {
	height: 10px;
	width: auto;
	border-width: 0 0 0 1px;
	padding-left: 4px;
	line-height: 12px;
	font-family: arial;
	font-size: 12px;
}

div.chord-diagram > div.footer {
	float: left;
	clear: left;
	margin-left: -2px;
}

div.chord-diagram > div.footer > div {
	position: relative;
	font-family: arial;
	font-size: 10px;
	text-align: center;
	width: 9px;
	min-height: 11px;
	float: left;
}