Text in Carousal

I am implementing carousal on my HTML page to display announcements.
The data is coming from JSON file , but the data keeps going out of the carousal. How can I make sure that all data reside insides the carousal and if the data extends the size of carousal it gets wrap or a scrolled bar if implemented do not affect its responsiveness

If you have you code on Codepen and supply us your profile name and pen name, we can take a look at your code and try to give you some advice.