Template:Underline

<div width="100%" style="margin: 3px 0 8px; height: 2px; background:linear-gradient(left, transparent 10%, # 50%, transparent 90%) repeat scroll 0 0 transparent; background:-moz-linear-gradient(left, transparent 10%, # 50%, transparent 90%) repeat scroll 0 0 transparent; background:-ms-linear-gradient(left, transparent 10%, # 50%, transparent 90%) repeat scroll 0 0 transparent; background:-khtml-linear-gradient(left, transparent 10%, # 50%, transparent 90%) repeat scroll 0 0 transparent; background:-icab-linear-gradient(left, transparent 10%, # 50%, transparent 90%) repeat scroll 0 0 transparent; background:-o-linear-gradient(left, transparent 10%, # 50%, transparent 90%) repeat scroll 0 0 transparent; background:-webkit-linear-gradient(left, transparent 10%, # 50%, transparent 90%) repeat scroll 0 0 transparent;">

Example input: ff0000

Example output: ff0000