Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>One way would be to dynamically modify your css styles directly (not per element) using javascript. </p> <p>In your page, all of the text divs in each <code>&lt;td&gt;</code> have a <code>class='gr'</code> in them WITH an inline <code>style="display:block;"</code>. First I'd move the <code>display:block;</code> into the style sheet (preferably into the first position).</p> <p>Using this <a href="https://stackoverflow.com/a/311437/496405">SO answer</a> (and <a href="http://dev.opera.com/articles/view/dynamic-style-css-javascript/#stylesheetproperties" rel="nofollow noreferrer">this page</a>, also this <a href="https://stackoverflow.com/a/622193/496405">SO answer</a>), I'd go through each of the stylesheets until you got the one your interested in (adding a title to the <code>&lt;css /&gt;</code> will allow you to easily do this). Remove the display block (which is a simple <code>stylesheet.deleteRule(&lt;index&gt;)</code> index will be zero because you put it first in .css). Add a new <code>display:none;</code>.</p> <p>This will essentially change the whole css for the page vs changing them individually PER element as you're forced to do with JQuery.</p> <p>Maybe not the most popular solution but still allows you to keep your current design (not duplicating the information) and uses css for what its suppose to do (tho 'dynamic'). </p> <hr> <p><strong>Follow up:</strong> Nice find with the <a href="http://www.hunlock.com/blogs/Totally_Pwn_CSS_with_Javascript" rel="nofollow noreferrer">"Totally Pwn CSS with Javascript"</a> . Does exactly what I would do in your situation (wanted to add it here for posterity :) )</p> <p>On a side note, someone should make a feature request to JQuery to be able to do something like this with ease. :)</p> <hr> <p><strong>Follow Up 2:</strong> <em>just realized someone else posted solution this before me</em></p> <p>Another way you can do this is to remove the 'gr' class and add another 'grHide' class. Check out this <a href="http://jsfiddle.net/SVf5k/13/" rel="nofollow noreferrer">fiddle</a> to see what I mean.</p> <p>Do as I said above, move the inline <code>display:block;</code> into the css stylesheet under the .gr class. Add a separate class that does everything .gr does but do a <code>display:none;</code> instead.</p> <p>This should allow you to use jquery AND still have it be very quick. The fiddle is quick anyways.</p>
    singulars
    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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      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