Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Use of pre tag avoids word wrapping

 
Periakaruppan Thiagarajan
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have used the pre tag to display dynamic content in pre-formatted text. But this avoids word wrapping which leads to horizontal scroll bar appearing in the screen. Is any other way to avoid this?

Thanks,
Pk
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
because that is what the pre tag does!

Look into CSS with word wrap and try setting a width.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic