42 users online (1 members and 41 guests)  


  Results 1 to 4 of 4

Related

  1. Displaying long text combo box in IE    Forum: CSS Forum
    Replies: 1
  2. Limit length of drop-down menu    Forum: Website Scripts Forum
    Replies: 0
  3. Replies: 0
  4. make a length size fixed ...    Forum: HTML Forum
    Replies: 1
  5. Same length boxs    Forum: CSS Forum
    Replies: 10
  1. #1
    wence's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2008
    Posts
    2

    DIV to confine long-length text

    Hi there, Im new to HTML. Is div able to confine/wrap long-length text without space , for example "asdjaskjdkajskldjaksjdkajslkdjkalsd....." to certain area on the page such that the GUI will not drag.. Please give some guidelines or examples on how can that be accomplish. Thanks.

    Regards,
    wence

  2. #2
    rangana's Avatar
    Moderator/Allstar

    Status
    Offline
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    317

    Re: DIV to confine long-length text

    You can try word-wrap:break-word in your CSS, but it only works on IE and Safari (as per time being).
    Checkout my porfolio.
    Please click the button when a member helped you.
    Take time to use Forum's Search function.

  3. #3
    wence's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2008
    Posts
    2

    Re: DIV to confine long-length text

    yes you are correct.. Whats other way if i were to cater for mozilla and explorer.

  4. #4
    rangana's Avatar
    Moderator/Allstar

    Status
    Offline
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    317

    Re: DIV to confine long-length text

    Quote Originally Posted by wence View Post
    yes you are correct.. Whats other way if i were to cater for mozilla and explorer.
    For mozilla, I don't think we can mimic the result that IE produces, except having the script as provided by this page: http://elmicoxcodes.blogspot.com/2007/06/script-word-wrap-to-firefox-updated.html

    Alternatively, you could use overflow: hidden; to cut the overflow or overflow: auto; to show scrollbars for overflow.

    You might also find this link a good read:
    http://archivist.incutio.com/viewlist/css-discuss/102258
    Checkout my porfolio.
    Please click the button when a member helped you.
    Take time to use Forum's Search function.



Tags for this Thread