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