Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Fixed cell width
Forum Updated to NodeBB v4.3 + New Features

Fixed cell width

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 526 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.
  • P Offline
    P Offline
    PatrickK
    wrote on last edited by kshegunov
    #1

    Hello,
    How can I attribute an equal cell width to the columns in such a table?
    Thanks in advance.

    <table class="upper">
        <tr>
            <th> </th>
            <th>Very Long text</th>
            <th>Med. text</th>
            <th>Short</th>
        </tr>
        <tr>
            <th>Measured Parameter</th>
            <th>{{condition one}}</th>
            <th>{{condition two}}</th>
            <th>{{condition three}}</th>
        </tr>
    </table>
    

    [Added code tags ~kshegunov]
    [Locked as remotely relevant to Qt, answer provided by @VRonin's google search ~kshegunov]

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by VRonin
      #2

      https://www.google.com/search?q=html+table+equal+column+width
      I'm inclined to lock due to 0% relevance to Qt but I'll let the other @Moderators decide

      PS: QTextEdit supports the width attribute: http://doc.qt.io/qt-5/richtext-html-subset.html#table-cell-attributes, so regular HTML rules apply. ~kshegunov

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      3

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved