div top border only code example Example: css border only top and bottom #element{ border-left:none; border-right:none; }