Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5

Thread: Div Break

  1. #1
    Regular Coder Andy92's Avatar
    Join Date
    Nov 2005
    Location
    Horsham, West Sussex, UK
    Posts
    363
    Thanks
    7
    Thanked 1 Time in 1 Post

    Div Break

    Hi there,

    When you go to...

    http://www.allsortshop.com/fghgfhddd...34kj23h4kj23h4

    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?


  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,744
    Thanks
    22
    Thanked 1,838 Times in 1,822 Posts
    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 that might work but I've never tried it.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #3
    Regular Coder Andy92's Avatar
    Join Date
    Nov 2005
    Location
    Horsham, West Sussex, UK
    Posts
    363
    Thanks
    7
    Thanked 1 Time in 1 Post
    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/ddddddddd...dddddddddddddd

    It still breaks?

    But when you go to...

    http://www.allsortshop.com/fffffffff...ffffffffffffff

    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?

  • #4
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,918
    Thanks
    6
    Thanked 1,040 Times in 1,013 Posts
    Quote Originally Posted by Allsortshop View Post
    Is there a way to space out the letters so that they each take up the same amount of pixels?
    Same width for any letter works only with non-proportional typefaces.
    You can set letter spacing in CSS with letter-spacing: ??px; (Lo and behold! ).

  • #5
    Regular Coder Andy92's Avatar
    Join Date
    Nov 2005
    Location
    Horsham, West Sussex, UK
    Posts
    363
    Thanks
    7
    Thanked 1 Time in 1 Post
    Ok got it all sorted.

    Thanks!!!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •