One issue I’m having deals with using jQuery to adjust the width of columns in the Facts table. I’m unable to force column width changes. I’m doing this by defining the following two CSS classes that define the default widths (as percentages) of the two columns in the table:
CSS:
.summary-first-col {
width: 30%;
}
.summary-second-col {
width: 70%;
}
Next, in the HTML annotate the <DIV> containing the table with 'id=“gmh-summary”’.
Finally, in the I’ve added the following to add the CSS classes to the first and second
The issue is that no matter what value I change the widths to in the CSS, the column widths always appear to be set to fit the longest string of the column.
<table class="table table-striped"> <tbody> <tr> <th>Nickname:</th> <!--first <td> in every <tr> should be renamed to <th>--> <td>"Amazing Grace"</td> </tr> <tr> <th>Born:</th> <!--first <td> in every <tr> should be renamed to <th>--> <td>December 9, 1906<br /> New York City, New York, U.S.</td> </tr> ....