Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I add styling to a javascript?
    primarykey
    data
    text
    <p>I have a page with a data grid and when I print it i want only the data grid to be printed. On clicking print all other elements in the page (left nav, header, footer etc) are removed and only the necessary part(which is in a div called printdiv) is displayed. But unfortunately I can't get it to display the background i want. Please Help!!! I need the background to be white, but instead it is grey, which is the background for the rest of the site, Is there a way I can change the background for the form alone?</p> <p>This is the javascript I'm using</p> <pre><code> &lt;div id="printDiv" &gt; &lt;div id="maincontent-right-wrapper"&gt; &lt;div class="page-heading"&gt; &lt;spring:message code="rmp.store_performance_yearly.page_header.store_performance_yearly" /&gt; &lt;/div&gt; &lt;!--shop starts--&gt; &lt;div class="shop-promoter-wrapper"&gt; &lt;div class="shop-promoter-inner"&gt; &lt;ul&gt; &lt;li&gt;&lt;spring:message code="rmp.store_performance_yearly.label.store" /&gt;&lt;/li&gt; &lt;li&gt;&amp;nbsp;&lt;/li&gt; &lt;li&gt;&lt;form:select path="storeid"&gt; &lt;form:options items="${StoreList}" itemValue="storeId" itemLabel="storeName" /&gt; &lt;/form:select&gt;&lt;/li&gt; &lt;li&gt;&lt;img src="../static/images/spacer.gif" width="26" height="1" /&gt;&lt;/li&gt; &lt;li&gt;&lt;spring:message code="rmp.store_performance_yearly.label.year" /&gt;&lt;/li&gt; &lt;li&gt;&amp;nbsp;&lt;/li&gt; &lt;li&gt;&lt;form:select path="year"&gt; &lt;form:options items="${YearList}" /&gt; &lt;/form:select&gt;&lt;/li&gt; &lt;li&gt;&amp;nbsp;&lt;/li&gt; &lt;li&gt;&lt;a href="#" onclick="callGo(1)"&gt; &lt;div class="button-wrapper"&gt; &lt;div class="button-left"&gt;&amp;nbsp;&lt;/div&gt; &lt;div class="button-middle"&gt; &lt;spring:message code="rmp.store_performance_yearly.button.go" /&gt; &lt;/div&gt; &lt;div class="button-right"&gt;&amp;nbsp;&lt;/div&gt; &lt;/div&gt; &lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; </code></pre>
    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.
 

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