Word Wrap not working properly

人盡茶涼 提交于 2019-12-13 02:55:08

问题


I'm trying to figure out why the word wrap is not working properly on this page for the div class:

.gce-page-list

http://metaphysicalerotica.com/events/

It looks like the theme has added a "pre" and "code" tag and if I delete the "pre" tag everything works fine, however I need a CSS fix to make the word-wrap work properly and I can't figure this out! I have tried everything I can think of, any advice would be great!


回答1:


Add this style to your style sheet:

pre, code{ white-space: pre-wrap; }



回答2:


The easiest solution would be for you to go in you style.css and add this class to line 67 for the "pre" and "code"

word-wrap: break-word;

So the style would look like this...

pre, code {
   font-family: Courier New, monospace;
   margin-bottom: 10px;
   word-wrap: break-word;
}


来源:https://stackoverflow.com/questions/19867804/word-wrap-not-working-properly

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!