python - CSS Table style in Django isn't showing the table design -


i have problem 1 of design in django template, other designs working fine table css code not working i'm attaching part of css code , relevant part djnago template.

my css file:

* {     margin: 0;     padding: 0; }  body {     text-align: justify;     font-family: arial, helvetica, sans-serif;     font-size: 13px;     color: #333333; }  table.gridtable {     font-family: verdana,arial,sans-serif;     font-size:11px;     color:#333333;     border: 1px #666666;     border-collapse: collapse; } table.gridtable th {     padding: 8px;     border: 1px solid #666666;     background-color: #dedede; } table.gridtable td {     padding: 8px;     border: 1px solid #666666;     background-color: #ffffff; }  form { }  input, textarea {     padding: 2px 5px;     font: normal 1em "trebuchet ms", arial, helvetica, sans-serif;     color: #333333; } ........ 

code in django template:

......... <div id="latest-post-wrap">     <div id="latest-post" class="post">         <p class="byline"></p> {#        <p class="byline"><span>posted on december 15th, 2007 <a href="#">someone</a></span></p>#}         <h1 class="title"><a href="#">logger</a></h1>         <div class="entry">    {#        <table class="imagetable" border="1" style="text-align: center">#}         <table class="gridtable">             <tr>                 <th style="width: 100px">id</th>                 <th style="width: 100px">id handle</th>                 <th style="width: 700px">date</th>                 <th style="width: 100px">name</th>                 <th style="width: 100px">host</th>                 <th style="width: 100px">serial number</th>                 <th style="width: 100px">batch number</th>                 <th style="width: 100px">site</th>                 <th style="width: 100px">cavity</th>             </tr>             {% handle in handles %}             <tr>                 <td>{{ handle.id }}</td>                 <td>{{ handle.idhandle }}</td>                 <td>{{ handle.createdate }}</td>                 <td>{{ handle.handlename }}</td>                 <td>{{ handle.handlehost }}</td>                 <td>{{ handle.serialnumber }}</td>                 <td>{{ handle.batchnumber }}</td>                 <td>{{ handle.site }}</td>                 <td>{{ handle.cavity }}</td>             </tr>             {% endfor %}         </table>          </div>     </div> </div> 

the problem table style css not working ideas? other styles working ok, table fails work.

edit1

the current view - there no style enter image description here

need style:

enter image description here

solved running manage.py collectstatic

somehow created in pycharm ide 2 static files, , mt changes made @ wrong file.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -