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 11 of 11
  1. #1
    New Coder
    Join Date
    Dec 2004
    Location
    Crown Point, IN
    Posts
    67
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Arrow word wrap in Mozilla?

    hi. I was wondering if someone could help me out. I've got a website (joeratt.com) and on there I have a guest book. Well one of my programming buddies showed me that I needed to wrap the words. So I did, but it didnt work in Mozilla.
    PHP Code:
    <div  style="position:absolute; word-wrap:  break-word; left:254px; width:470;"
    is there a way to make this work in mozilla too?
    ~Joe

  • #2
    New Coder
    Join Date
    Dec 2004
    Location
    Crown Point, IN
    Posts
    67
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ok so it doesnt work on netscape either... hm... is there a way to do this?

  • #3
    Senior Coder gsnedders's Avatar
    Join Date
    Jan 2004
    Posts
    2,340
    Thanks
    1
    Thanked 7 Times in 7 Posts
    It's not valid HTML or CSS, try making it validate, then try again.

  • #4
    Regular Coder
    Join Date
    Nov 2004
    Location
    The Netherlands
    Posts
    551
    Thanks
    0
    Thanked 0 Times in 0 Posts
    And it's in a php code box... lol

    anyway:
    Code:
    <div style="position:absolute; white-space: nowrap; left:254px; width:470px;">
    CATdude about IE6: "All your box-model are belong to us"

  • #5
    New Coder
    Join Date
    Dec 2004
    Location
    Crown Point, IN
    Posts
    67
    Thanks
    0
    Thanked 0 Times in 0 Posts
    is nowrap what i want?

  • #6
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    No, you want word-wrap; unfortunately, it's IE-only. Moz doesn't support it. You might have to try some scripting if you're looking for a specific effect.

  • #7
    New Coder
    Join Date
    Dec 2004
    Location
    Crown Point, IN
    Posts
    67
    Thanks
    0
    Thanked 0 Times in 0 Posts
    what do you mean... sorry.. im lost

  • #8
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    I mean, "word-wrap" will give you what you are looking for, not "nowrap." Internet Explorer is the only browser that supports "word-wrap."

    For Mozilla, there is no CSS based code that'll give you the effect of breaking and wrapping a word. So you will need to use some Javascript or PHP to emulate that for you.

  • #9
    New Coder
    Join Date
    Dec 2004
    Location
    Crown Point, IN
    Posts
    67
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ok now i understand... but is tehre a way to be all browser compatable?

  • #10
    Senior Coder gsnedders's Avatar
    Join Date
    Jan 2004
    Posts
    2,340
    Thanks
    1
    Thanked 7 Times in 7 Posts
    Safari 1.3 and up also supports it.

  • #11
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    Quote Originally Posted by cursor_joe
    ok now i understand... but is tehre a way to be all browser compatable?
    errrehmm... as far as I know the only way to do that is use some Javascript or PHP to emulate the effect you're looking for.


  •  

    Posting Permissions

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