Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Fixed cell width in tables

Fixed cell width in tables

Scheduled Pinned Locked Moved Web Development
htmltutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JussiL
    wrote on last edited by
    #1

    Hi, Is it somehow possible to force the width of a table column be fixed (in HTML) no matter how huge the cell content might be? For example in the example below, the width of the table increases if I insert a very long string with no spaces to it. So is it possible to force the text to be wrapped eventhough there's no spaces in it? page

    -Jussi

    A 1 Reply Last reply
    0
    • J JussiL

      Hi, Is it somehow possible to force the width of a table column be fixed (in HTML) no matter how huge the cell content might be? For example in the example below, the width of the table increases if I insert a very long string with no spaces to it. So is it possible to force the text to be wrapped eventhough there's no spaces in it? page

      -Jussi

      A Offline
      A Offline
      Andrew Quinn AUS
      wrote on last edited by
      #2

      Hi there, Try the following: JussiL wrote:_

      STYLE="word-wrap:break-word;">

      _Hope this helps, Andy

      J 1 Reply Last reply
      0
      • A Andrew Quinn AUS

        Hi there, Try the following: JussiL wrote:_

        STYLE="word-wrap:break-word;">

        _Hope this helps, Andy

        J Offline
        J Offline
        JussiL
        wrote on last edited by
        #3

        Yeah, this is exactly what I needed. Thanks :) -Jussi

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups