Thread Closed 
Help with CSS
05-22-2012, 01:29 PM (This post was last modified: 05-22-2012 01:30 PM by aatish910.)
Post: #1
Help with CSS
Have a look at here:
http://l.f.nu/bL

All long lines goes beyond the border. Is there a way to automatically break lines there? Here is a CSS entry for class 'codeblock' as well as 'unix':
Code:
.unix{padding:4px;border:0px ;background-color:#1F231F;color:#fff}
.codeblock{padding:10px;border:1px solid #CCC;background-color:#EEE;}

I have attached the screenshot if you can't see it.


Attached File(s) Thumbnail(s)
   

Don't worry about the world coming to an end today. It's already tomorrow in Australia.
User Tools


05-22-2012, 01:50 PM
Post: #2
RE: Help with CSS
A quick google search:

Try adding this to both values: word-wrap: break-word;

Or all of these for good measure:

white-space: pre; /* CSS 2.0 */
white-space: pre-wrap; /* CSS 2.1 */
white-space: pre-line; /* CSS 3.0 */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
white-space: -moz-pre-wrap; /* Mozilla */
white-space: -hp-pre-wrap; /* HP Printers */
word-wrap: break-word; /* IE 5+ */

Thanks to Datashack.net and FreeVPS.us for the VPS25
User Tools
05-22-2012, 05:30 PM
Post: #3
RE: Help with CSS
As rannox said,
Code:
word-wrap: break-word;
should be just enough

Zeboo/Greg

Thanks for VPS 25 - FreeVPS.US

By the way while I had my VPS 17 - MitiHost - I had no problems with it, I highly recommend MitiHost.
User Tools
05-22-2012, 09:12 PM
Post: #4
RE: Help with CSS
This is solved? Looks like.

Closed, PM me to reopen.
User Tools
Thread Closed 


Forum Jump:



User(s) browsing this thread:
1 Guest(s)