Note that there are some explanatory texts on larger screens.

plurals
  1. POfixing header width due to lower table stretch
    primarykey
    data
    text
    <p>I have a fluid layout. Header has a background repeater 1x100 png on the div. it fills to the right of the view port as desired.</p> <p>However, there's also a data table on this page in the mainbody div. And, on most viewports, it causes horizontal scrolling because there's so much stuff in it.</p> <p>When scrolled to the right, the header is not there.</p> <p>Is there a way with jquery, or otherwise, to cause the header to stretch to the width of the table? I won't know how big the table is until it's rendered. I tried hacking it with 110% and other widths, but its never accurate depending on content as the table is fluid with nowhitespace linebreaks either, and longer titles stretch cells.</p> <p>This is an ie8 intranet, so any fix must work in this browser.</p> <p>html is very basic and pseducode looks like</p> <pre><code>&lt;div id=wrap&gt; &lt;div id=header&gt;&lt;/div&gt; &lt;div id=tablearea&gt;&lt;table&gt;WIDE TABLE HERE&lt;/table&gt;&lt;/div&gt; &lt;/div&gt; </code></pre> <p>I was hoping the wrapper would stretch on resize, but it doesn't.</p> <p>any tips to get that header to paint right? I'd love to use straight CSS, but am not opposed to a javascript/jquery hack.</p> <p>Again, ie8 is our line (unfortunately) so it must work on that.</p> <p>I made a quick paint jobber, but all the imgur, tinypic, etc sites are blocked at the office so i can't seem to get it hosted anywhere. if anyone has any tips on that too would be appreciated (via pm).</p> <p>Thanks.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload