<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hmmm... I have the following logic in a module's hook_view() creating a table out of programmatically generated information:<div><br></div><div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 12px;"> $header = array(t($node->title), t('Values:'));</span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 12px;"> $rows = array(array('<strong>Project status:</strong>', $statusMarkup), </span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 12px;"> array('<strong>Notes:</strong>', $node->content['body']['#value']),</span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 12px;"> array('<strong>Images:</strong>', $imagesMarkup),</span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 12px;"> array('<strong>Image Tags:</strong>', $imageTagMarkup),</span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 12px;"> array('<strong>Reconstructions:</strong>',$reconsMarkup),</span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 12px;"> array('<strong>Actions:</strong>', $actionsMarkup));</span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 12px;"> $table = theme('table', $header, $rows, array('style' => 'width: 770px', 'class' => 'form-item'));</span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 12px;"> $node->content['body']['#value'] = $table;</span></font></div><div><br class="webkit-block-placeholder"></div><div>
<span class="Apple-style-span" style="font-family: Helvetica; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div>Notice that portion where I declare the width of the table to only be 770px? That is being ignored... I've tried variations like:</div><div><br></div><div>array( 'width' => '770px', ...) [note not 'style' here] and array( 'style' => 'width: 77px;', ...) [note added semicolon here]</div><div><br></div><div>When I don't use the 'style' attribute, the sticky-header gets a style setting with the width set to '877.617px;', so it looks like the 'style' usage is what I need, but I'm not finding the magic combination...</div><div><br></div><div>any advice? </div><div><br class="Apple-interchange-newline">Sincerely,</div><div>-Blake</div><div><br></div></span></span></div></span></div></div></body></html>