Jump to content

View Admin Area Full Width


sparky

Recommended Posts

I finally got sick of all the wasted space on the right hand side of the admin area, so I had to do something about it.

 

In your admin/templates folder, open topmenu.tpl and insert this line at the top of the file.

{php}echo "\n<style type=\"text/css\" media=screen>";echo "\n<!--";echo "\nhtml body table tbody tr td table {    width: 100%; }";echo "\n-->";echo "\n</style>";{/php}

 

No more wasted space!!

Link to comment
Share on other sites

Sparky & all,

 

Why crap it up with a table where a table is not called for???

 

Find in the style.css and change the highlighted entry

.wrapper {
[color="red"]width: 100%;[/color]
border: 0px;
padding: 5px;
border-collapse: collapse;
background-color: #ffffff;
margin-left: auto; 
margin-right: auto;
}

 

My Bad!!! Missed "Admin"

Edited by Pima
Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...

I think this is a little unneccesary:

 

{php}
echo "\n<style type=\"text/css\" media=screen>";
echo "\n<!--";
echo "\nhtml body table tbody tr td table {    width: 100%; }";
echo "\n-->";
echo "\n</style>";
{/php}

 

The 2nd method by WEBWORKER is the best.

 

This is the top of the style.css file. note the "html body table tbody tr td table" added to the CSS style.

Also note the modification of the NAVBAR style.

 [color="#FF0000"]html body table tbody tr td table {
 width: 100%; }[/color]

[b]AND:[/b]

.navbar {
 background-color: #EFF2F9;
 padding:15px;
 font-size: 10px;
 [color="#FF0000"]width:150px;[/color]}

 

I also found it easier to modify this file (topmenu.tpl), by giving the correct formatting. (:

<div align="center">
   <span class="navbutton" onMouseOver="this.className='navbuttonover';dropdownmenu(this, event, menu1, '');" onMouseOut="this.className='navbutton';delayhidemenu();" onClick="window.location='index.php'">
       <a href="index.php">Home</a>
   </span>

   <span class="navbutton" onMouseOver="this.className='navbuttonover';dropdownmenu(this, event, menu2, '');" onMouseOut="this.className='navbutton';delayhidemenu();" onClick="window.location='clients.php'">
       <a href="clients.php">Clients</a>
   </span>

   <span class="navbutton" onMouseOver="this.className='navbuttonover';dropdownmenu(this, event, menu3, '');" onMouseOut="this.className='navbutton';delayhidemenu();" onClick="window.location='orders.php'">
       <a href="orders.php">Orders</a>
   </span>

   <span class="navbutton" onMouseOver="this.className='navbuttonover';dropdownmenu(this, event, menu4, '');" onMouseOut="this.className='navbutton';delayhidemenu();" onClick="window.location='transactions.php'">
       <a href="transactions.php">Transactions</a>
   </span>

   <span class="navbutton" onMouseOver="this.className='navbuttonover';dropdownmenu(this, event, menu5, '');" onMouseOut="this.className='navbutton';delayhidemenu();" onClick="window.location='supportcenter.php'">
       <a href="supportcenter.php">Support</a>
   </span>

   <span class="navbutton" onMouseOver="this.className='navbuttonover';" onMouseOut="this.className='navbutton';" onClick="window.location='reports.php'">
       <a href="reports.php">Reports</a>
   </span>

   <span class="navbutton" onMouseOver="this.className='navbuttonover';dropdownmenu(this, event, menu7, '');" onMouseOut="this.className='navbutton';delayhidemenu();">Utilities
   </span>

   <span class="navbutton" onMouseOver="this.className='navbuttonover';dropdownmenu(this, event, menu8, '');" onMouseOut="this.className='navbutton';delayhidemenu();">Configuration
   </span>

   <span class="navbutton" onMouseOver="this.className='navbuttonover';dropdownmenu(this, event, menu9, '');" onMouseOut="this.className='navbutton';delayhidemenu();">Help
   </span>
</div>

 

However i find at max resolution on a 19" LCD that the left column, extends larger than 150px, and then when it is made smaller, stops resizing once it reaches 150px.

Seems as though it can grow larger than 150, but not less.

Anyone know how to keep the left column static, and right column (body) to grow with browser size.

 

Thanks!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated