Page Width

Page Width
Article
Quote    Download Post  
Post Page Width 
 
Normally the page width is set in the overall header but I cant figure it out in IP. Im trying to make the black pearl template 1024 wide and centered. Can someone point me in the right direction



 
wingzfan - Profile PM  
wingzfan [ Wed 31 Oct, 2007 14:39 ]
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us


Page Width
Comments
Quote    Download Post  
Post Re: Page Width 
 
This code?

Code: [Download] [Hide] [Select]
<align=center>
<table width="1024" height="768" border="0">
DATA
DATA
DATA
</table>
</align>


PS: Moving to templates.

Moved.



 
Edited by novice programmer, Wed 31 Oct, 2007 15:23: Moved.
novice programmer - Profile PM  
novice programmer [ Wed 31 Oct, 2007 15:20 ]
Quote    Download Post  
Post Re: Page Width 
 
Is that the code currently in the file or is that what I need to add? What file is that in?



 
wingzfan - Profile PM  
wingzfan [ Wed 31 Oct, 2007 15:30 ]
Quote    Download Post  
Post Re: Page Width 
 
wingzfan wrote: [View Post]
Is that the code currently in the file or is that what I need to add? What file is that in?


The code to add.
You can change its width and height values, as the border one.
Post if it correct your problem.



 
Edited by novice programmer, Wed 31 Oct, 2007 15:45: Added something...
novice programmer - Profile PM  
novice programmer [ Wed 31 Oct, 2007 15:44 ]
Quote    Download Post  
Post Re: Page Width 
 
novice programmer wrote: [View Post]
wingzfan wrote: [View Post]
Is that the code currently in the file or is that what I need to add? What file is that in?


The code to add.
You can change its width and height values, as the border one.
Post if it correct your problem.


sorry, not really sure where to put that code



 
wingzfan - Profile PM  
wingzfan [ Wed 31 Oct, 2007 15:56 ]
Quote    Download Post  
Post Re: Page Width 
 
Just put in header the align and table open codes, and the close code in the footer tpl files



 
novice programmer - Profile PM  
novice programmer [ Wed 31 Oct, 2007 16:26 ]
Quote    Download Post  
Post Re: Page Width 
 
Ok I was able to adjust the size but it wont align center. I used

<table width="1000" align="center" cellspacing="0" cellpadding="0" border="0">
<tr>
<td>

in the header and closed it in the footer. Anyone have any ideas why it wouldnt center?



 
wingzfan - Profile PM  
wingzfan [ Thu 01 Nov, 2007 03:06 ]
Quote    Download Post  
Post Re: Page Width 
 
because you have to center the table, with

Code: [Download] [Hide] [Select]
<align="center">


Before the table starts

And in footer:

Code: [Download] [Hide] [Select]
</align>


Just inmedetly after from the table closes



 
novice programmer - Profile PM  
novice programmer [ Thu 01 Nov, 2007 13:10 ]
Quote    Download Post  
Post Re: Page Width 
 
novice programmer wrote: [View Post]
because you have to center the table, with

Code: [Download] [Hide] [Select]
<align="center">


Before the table starts

And in footer:

Code: [Download] [Hide] [Select]
</align>


Just inmedetly after from the table closes


Ok did that

header:
Code: [Download] [Hide] [Select]
<body>
<align="center">
<table border="0" width="900" cellspacing="0" cellpadding="0">
    <tr>
        <td>


Footer:
Code: [Download] [Hide] [Select]
</td>
            </tr>
        </table>
        </align>
</body>



Still lines up on the left side of the page though. If I change the align to the right it goes to the right side but it wont center no matter what I try.



 
wingzfan - Profile PM  
wingzfan [ Thu 01 Nov, 2007 13:39 ]
Quote    Download Post  
Post Re: Page Width 
 
Try this:

Header:
Code: [Download] [Hide] [Select]
<table border="0" width="900" cellspacing="0" cellpadding="0" align=center>


Footer:
Code: [Download] [Hide] [Select]
</table>




 
novice programmer - Profile PM  
novice programmer [ Thu 01 Nov, 2007 15:23 ]
Quote    Download Post  
Post Re: Page Width 
 
novice programmer wrote: [View Post]
Try this:

Header:
Code: [Download] [Hide] [Select]
<table border="0" width="900" cellspacing="0" cellpadding="0" align=center>


Footer:
Code: [Download] [Hide] [Select]
</table>


Still nada, its ok Ill just leave it full page. Thank you very much for your help though.



 
wingzfan - Profile PM  
wingzfan [ Thu 01 Nov, 2007 15:41 ]
Quote    Download Post  
Post Re: Page Width 
 
Do not use tables for that... use div instead.

OPEN this in header just after <body> tag:

Code: [Download] [Hide] [Select]
<div style="width:960px;clear:both;margin: 0 auto;">


and CLOSE it in footer just before </body> tag:
Code: [Download] [Hide] [Select]
</div>


Let me know.

Remember that if you have 1024 you need a width which is less than 1024 otherwise page will stretch, because you need extra pixels to show its full width. 960 pixels it is usually enough even for including scrollbars.



 
Mighty Gorgon - Profile PM  
Mighty Gorgon [ Thu 01 Nov, 2007 22:19 ]
Quote    Download Post  
Post Re: Page Width 
 
Mighty Gorgon wrote: [View Post]
Do not use tables for that... use div instead.

OPEN this in header just after <body> tag:

Code: [Download] [Hide] [Select]
<div style="width:960px;clear:both;margin: 0 auto;">


and CLOSE it in footer just before </body> tag:
Code: [Download] [Hide] [Select]
</div>


Let me know.

Remember that if you have 1024 you need a width which is less than 1024 otherwise page will stretch, because you need extra pixels to show its full width. 960 pixels it is usually enough even for including scrollbars.


Awesome that worked perfectly. Thank you so much man. BTW, you have done an amazing job with this system man. Im thoroughly impressed.



 
wingzfan - Profile PM  
wingzfan [ Fri 02 Nov, 2007 04:44 ]
Quote    Download Post  
Post Re: Page Width 
 
Thanks! :LOL:



 
Mighty Gorgon - Profile PM  
Mighty Gorgon [ Mon 09 Jun, 2008 12:20 ]
Display posts from previous:    
HideWas this topic useful?
Post new topic  Reply to topic  Page 1 of 1
 
 




 

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Design by DiDiDaDo

Generation Time: 0.0931s (PHP: -17% SQL: 117%)
SQL queries: 15 - Debug On - GZIP Enabled