calculate x position with postion:relative and width/maxWidth
smart tabs per contribution guidelines
Merge pull request #1684 from scooterw/1670

calculate x position with postion:relative and width/maxWidth