How to adjust the tab items width of the tabs control


I have a tab control with 5 tab items inside a div panel. In a resolution of 1900 looks fine, but when the screen resolution is less, the tab items are displayed outside the div panel.

Any idea how to adjust the tab width based on the parent container size or any idea to make it responsive or to adjust the tab item width for different screen resolutions.