Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Cells with links ignore table width style

Kevin Murphy January 22, 2015

Hello Confluence Users,

   I'm having a devil of a time getting Confluence to play nice with a table I have.  I can format the column width successfully for all but two of my columns.  Two of my columns have links in them and they do not want to behave and shrink down to the width specified in the width attribute.  I should note I've tried a few different ways to accomplish this with no luck (colgroup/col style, CSS formatting with max-width, section/column macros (won't work for the type of table), and div tags which are the current method that the table uses).

Here's a copy/paste of the table source, the column in question is the "Links to Release notes"

         ...

      <th>
        <h5>Release Type</h5>
      </th>
      <th>
        <div style="width: 300.0px;">
          <h5>Short Description <em>(One to two </em> <em>sentences)</em>
          </h5>
        </div>
      </th>

             ...

      <th>
        <div style="width: 50.0px;">
          <h5>Link to Release Notes</h5>
        </div>

The "Links to Release Notes" is taking up more space then the Short Description.  I'd like it to take up somewhere between 50px and 100px (not sure since I can't get it to work).  Any ideas on this one?

 

Kevin D Murphy

1 answer

0 votes
Jonathan Simonoff
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 22, 2015

HTML table cells ignore the width setting if the content is wider.  You might be able to use table-layout:fixed in CSS to change this.  See http://stackoverflow.com/questions/11090544/td-widths-not-working for a discussion.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events