Jump to content

how do you change header size in portal template?


Martyn

Recommended Posts

i dont like it looking so wide! just wondering how i change its width?

You could comment out the tiled background image in the CSS like so:

 

/*background: #ffffff url("images/whmcslogobg.png") repeat-x;*/

 

That would be the easiest way, unless you want to use some other width and retain the tiling image, of course.

Link to comment
Share on other sites

That's because the header is just a background which is applied to the whole page. To make it apply to the size of the wrapper which is by default 760px, open style.css and do the following step.

 

Change

body {
background: #ffffff url("images/whmcslogobg.png") repeat-x;
margin: 0px;
}

 

To

body {
margin: 0px;
}

 

And then change,

table.wrapper {
width: 760px;
}

To

table.wrapper {
width: 760px;
background: #ffffff url("images/whmcslogobg.png") repeat-x;
}

Then assuming you want to change the width of the footer, change the following code in footer.tpl:

<table width="100%" border="0" cellpadding="0" cellspacing="0" style="background:#6e97be;">
   	<tr>
       <td><table width="760" border="0" cellpadding="0" cellspacing="0" align="center"><tr>
   	<td class="footerbar"><strong>{$companyname}</strong></td>
   	<td class="footerbar"><div align="right">{if $langchange}{$setlanguage}{/if}</div></td>
       </tr>
       </table>
       </td>
   	</tr>
   	</table>

To

<table width="760" border="0" cellpadding="0" cellspacing="0" align="center"><tr>
   	<td class="footerbar"><strong>{$companyname}</strong></td>
   	<td class="footerbar"><div align="right">{if $langchange}{$setlanguage}{/if}</div></td>
       </tr>
       </table>

Hope that helps.

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