The share market has closed higher as gains by miners outweighed falls from two major banks that were sold off as they traded ex-dividend.

The share market has closed higher as gains by miners outweighed falls from two major banks that were sold off as they traded ex-dividend.