Welcome Guest, Not a member yet? Register   Sign In
table width
#1

Hello,

I am trying to fix the table width but unable to do so .  I already try setting the width for all <tr> and <td> but still unable to follow my instruction I wonder why?  Can anyone help me fix this table?  (Pay attention to the code that I already add :

PHP Code:
style "width:200px" 



views/pages.php

PHP Code:
<div class="row-fluid">
                <
div class="span12">
                    
                    <
button type="button" class="add" onclick="location.href = 'addpages';">ADD PAGES</button
                    
                        <
div class="widget-box">
                        <
div class="widget-title"><h5>Administrator</h5></div>
                        <
div class="widget-content">
                        
                        <
tr>
                            <
th style "width:200px">PAGES NAME</th>
                            <
th style "width:200px">CREATE DATE</th>
                            <
th>ORDER</th>
                            <
th>EDIT</th>
                            <
th>VIEW CONTENT</th>
                            <
th>DELETE</th>    
                        </
tr>
                        
                        <
br><br>                        
                        
                        <?
php foreach ($pages as $pages_item): ?>
                        
                        
                        <table border="0" style="width: 100%; height: 40px;"> 
                            
                            <tr>
                                <td style="width:200px"><?php echo $pages_item->pages_name?></td>
                                <td><?php echo $pages_item->create_date?></td>
                                <td><?php echo $pages_item->pages_order?></td>
                                <td><button type="button" class="edit" href="adminform.php">EDIT</button></td>
                                <td><button type="button" class="edit" href="adminform.php">VIEW CONTENT</button></td>
                                <td><button type="button" class="delete" href="adminform.php">DELETE</button></td>    
                            </td>    
                                
                        </table>        

                        <?php endforeach; ?>
                        
                        </div>
                    </div>                    
                </div>
            </div> 


I still unable to fix the table.  Can anyone help me? 

Thanks in advance.
" If I looks more intelligence please increase my reputation."
Reply
#2

Closing this thread. I already find the answer. Thanks.
" If I looks more intelligence please increase my reputation."
Reply




Theme © iAndrew 2016 - Forum software by © MyBB