...

View Full Version : Div Break



Andy92
12-10-2006, 11:22 PM
Hi there,

When you go to...

http://www.allsortshop.com/fghgfhddddddddddddddddddddddddddsfdsfdffffffffffffffffffffffffffffffffffffsdak34jk2h34kj32h4jh234kj2 3h4kj23h4

The requested url breaks off the page.

Is there any box that i can put round this, so that if it gets to the end it will carry on, on another line underneath?

:confused:

Excavator
12-11-2006, 12:06 AM
Hello Allsortshop,
Wrapping long text is a problem... could set overflow to hidden but I think IE would ignore that and I imagine you want the whole URL to be visible.
Use word-wrap:break-word; and FF will ignore.

I found a PHP script (http://www.w3schools.com/php/func_string_wordwrap.asp) that might work but I've never tried it.

Andy92
12-13-2006, 10:55 PM
Ok i have used that link and i have put an 86 charachter limit per line.

But when you go to...

http://www.allsortshop.com/dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd ddddddd

It still breaks?

But when you go to...

http://www.allsortshop.com/ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff fffffffffffffffffffffffffffffffffff

It doesnt break?

I think its because all the letters take up different amounts of space.

Is there a way to space out the letters so that they each take up the same amount of pixels? :confused:

VIPStephan
12-13-2006, 11:51 PM
Is there a way to space out the letters so that they each take up the same amount of pixels? :confused:

Same width for any letter works only with non-proportional typefaces (http://en.wikipedia.org/wiki/Typeface#Proportion).
You can set letter spacing in CSS with letter-spacing: ??px; (Lo and behold! ;) ).

Andy92
12-14-2006, 06:43 PM
Ok got it all sorted.

Thanks!!!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum