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. A Beginner's Question

A Beginner's Question

Scheduled Pinned Locked Moved Web Development
questionhtmlarchitecturehelplearning
2 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.
  • X Offline
    X Offline
    Xiaoming Qian
    wrote on last edited by
    #1

    Hi I am a new commer to html.I have a question: <table style=" border-color:Black;border-width:1px;border-style:solid"> <tr > <td style="width:100px;height:100px"> 111111111111111111111111111111111111111111111111111111111111 </td> </tr> </table> I want the text in td be wraped when exceeds the width ,and the text be clipped when it exceeds the height. Can anyone help me? Any idea will be appropiate.

    S 1 Reply Last reply
    0
    • X Xiaoming Qian

      Hi I am a new commer to html.I have a question: <table style=" border-color:Black;border-width:1px;border-style:solid"> <tr > <td style="width:100px;height:100px"> 111111111111111111111111111111111111111111111111111111111111 </td> </tr> </table> I want the text in td be wraped when exceeds the width ,and the text be clipped when it exceeds the height. Can anyone help me? Any idea will be appropiate.

      S Offline
      S Offline
      Shog9 0
      wrote on last edited by
      #2

      add overflow:hidden to the td style for clipping. It won't wrap unless there are spaces though. Sorry.

      Citizen 20.1.01

      'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'

      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