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. Table in fix sizes ( Hard Table !!! )

Table in fix sizes ( Hard Table !!! )

Scheduled Pinned Locked Moved Web Development
helphtmlcssquestion
4 Posts 3 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.
  • H Offline
    H Offline
    Hadi Rezaee
    wrote on last edited by
    #1

    Hi, I don't know any better subject for this question. Well, I've a table in my page ... and i should add some long text into the table. The problem is whenever i add thease long texts, the table change the sizes !!! I CAN'T use ENTER to break the texts and make new short texts and then use of them in the table. I'm looking for HTML code or CSS to do it automatically. In fact i want the table in fix size and static, this code should break the texts to new lines in the table. Regards,

    D 1 Reply Last reply
    0
    • H Hadi Rezaee

      Hi, I don't know any better subject for this question. Well, I've a table in my page ... and i should add some long text into the table. The problem is whenever i add thease long texts, the table change the sizes !!! I CAN'T use ENTER to break the texts and make new short texts and then use of them in the table. I'm looking for HTML code or CSS to do it automatically. In fact i want the table in fix size and static, this code should break the texts to new lines in the table. Regards,

      D Offline
      D Offline
      Dominik Reichl
      wrote on last edited by
      #2

      <table width="100%"> ... </table> Is it that what you wanted???


      _outp(0x64, 0xAD); and __asm mov al, 0xAD __asm out 0x64, al do the same... but what do they do?? ;) (doesn't work on NT)

      H 1 Reply Last reply
      0
      • D Dominik Reichl

        <table width="100%"> ... </table> Is it that what you wanted???


        _outp(0x64, 0xAD); and __asm mov al, 0xAD __asm out 0x64, al do the same... but what do they do?? ;) (doesn't work on NT)

        H Offline
        H Offline
        Hadi Rezaee
        wrote on last edited by
        #3

        Thanks for reply Dominik :) It seems i was too tired when i wrote this question, really sorry. Now i'm fine ;) Regards,

        R 1 Reply Last reply
        0
        • H Hadi Rezaee

          Thanks for reply Dominik :) It seems i was too tired when i wrote this question, really sorry. Now i'm fine ;) Regards,

          R Offline
          R Offline
          Roger Wright
          wrote on last edited by
          #4

          You can set sizes a couple of ways, other than what Dominik suggests. Set the Table width to 100%, then set each column to a % of that, totalling 100% to make the display fill the available space on the user's screen. Or you can set the width of the table to xxx px, and the columns to smaller sizes if fixed pixels (px). A static sizing method like this, though, may look rather strange on various screens, depending on the users' settings. I prefer the % method myself, and moving all such details to a style sheet is even cleaner, as it lets you change settings throughout the site with a few keystrokes. "Another day done - All targets met; all systems fully operational; all customers satisfied; all staff keen and well motivated; all pigs fed and ready to fly" - Jennie A.

          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