border at top of div html code example Example: css border top .topBorder { /* width style color */ border-top: 5px solid black; }