Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to externally style with CSS the specific 3 td tags on the html table generated by the pager row of a asp.net gridview control
    primarykey
    data
    text
    <p>The working version of the html table generated markup with css is here: <a href="http://jsfiddle.net/nexU/JkUCQ/1/" rel="nofollow">http://jsfiddle.net/nexU/JkUCQ/1/</a></p> <p>As you can see all I need is to set these align and width styles for those 3 specific TD tags on a external css and override the ones that are automatically generated by asp control.</p> <p>Thanks in advance for your help.</p> <p>/* I want 1st pagerRow TD to have width 10% I want 2nd pagerRow TD to have width 80% I want 3rd pagerRow TD to have width 10%</p> <p>*/</p> <p>/------------style.css------------/</p> <pre><code>.pagerRow { background: #3D6AA2; font-weight: normal; color: #fff; text-align: left; height: 30px; } .pagerRow td { border: solid 1px red; } </code></pre> <p>/<em>------------ part of html generated by control------------</em>/</p> <pre><code>&lt;table id="mainContacts" class="contactsBase" cellspacing="0" border="1" style="width: 100%;"&gt; &lt;tbody&gt; &lt;tr class="header_row"&gt; &lt;/tr&gt; &lt;tr class="odd"&gt; &lt;/tr&gt; &lt;tr class="even"&gt; &lt;/tr&gt; &lt;tr class="odd"&gt; &lt;/tr&gt; &lt;tr class="even"&gt; &lt;/tr&gt; &lt;tr class="odd"&gt; &lt;/tr&gt; &lt;tr class="even"&gt; &lt;/tr&gt; &lt;tr class="odd"&gt; &lt;/tr&gt; &lt;tr class="even"&gt; &lt;/tr&gt; &lt;tr class="odd"&gt; &lt;/tr&gt; &lt;tr class="even"&gt; &lt;/tr&gt; &lt;tr class="odd"&gt; &lt;/tr&gt; &lt;tr class="pagerRow" align="center"&gt; &lt;td colspan="5"&gt; &lt;table cellspacing="0" cellpadding="0" border="0" width="100%"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td align="left" width="25%"&gt; &lt;!--How to set these align and width styles on external css and override these ones that are automatically generated by asp control?--&gt; &lt;/td&gt; &lt;td align="center" width="50%"&gt; &lt;!--How to set these align and width styles on external css and override these ones that are automatically generated by asp control?--&gt; &lt;p&gt; 1,2,3,4,5 &lt;/p&gt; &lt;/td&gt; &lt;td align="right" width="25%"&gt; &lt;!--How to set these align and width styles on external css and override these ones that are automatically generated by asp control?--&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; </code></pre>
    singulars
    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.
    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