Course Content

If you are facing any issue in playing video please use Firefox browser.

Course Content


What Is Word Wrapping And How To Use It In CSS3?

What is word wrap? The word-wrap CSS property specifies the line breaks within the word in order to prevent the overflow when a word is too long to fit within the content area of the element. The word-wrap property allows long words to be able to be broken and wrap onto the next line.

Let’s see an Example of word-wrap working :
Hello this is font style
<p>this is wordwrap</p>
Save it and check whether written text is displayed or not. Now go to CSS and define the elements as shown in video :
body {font-size: 30px; text-align: center; text-shadow: 0px 0px 5px red;}
p{width: 60px; border: 1px solid green; word-wrap: break-word;}

You can see how we can adjust the words using break-word and word-wrap. This is the specialty of browser that it begins new word in new line after completion of one line and not break it in characters. So in this video, we saw how to do word wrap and apply text shadow to words.


Recommended Courses

Share With Friend

Have a friend to whom you would want to share this course?

Download The Apps

Code Scan or Download the app
Google Play Store
297K+ Downloads
4.5 Rating
10K+ Reviews
  • Learn anywhere on the go
  • Get regular updates about your enrolled or new courses
  • Share content with your friends
  • Evaluate your progress through practice tests
  • No internet connection needed
  • Enroll for the webinar and join at the time of the webinar from anywhere