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