Html text goes outside container

sir this text is going outside container class container also added below what should i do so that it resides inside the container only

height: 3000px;
width: 50%;
border:2px solid blue;
position: relative;
float: right;

Thank You

I think your doing the mistake by taking width of the class as 50% if you take the width of the class as 100% then the issue will be solved .


You can use

overflow-wrap: break-word; 

property in the container class. Check this link overflow-wrap | CSS-Tricks

Do let me know in case you need any other information.

Thank you my doubt has been solved

1 Like