homepage Welcome to WebmasterWorld Guest from 54.227.141.230
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
basic PHP help needed
we need to somehow define page width...
iggy99




msg:1249937
 4:33 pm on Aug 23, 2001 (gmt 0)

we are trying to use PHP classifieds [deltascripts.com...]

we hope to have all content on rendered pages fit a 90% of page width -

i see much of the main content is not displayed in a table -

how can i add one table or set page margins on sides to 90% by default - is this possible to do with css - ???

also if anybody has had great success with a classified ad script i would like to hear aboput it!!!

many thanks

here is the index page:

<?

require("config/header.inc.php");
require("config/config.inc.php");

if (!$special_mode)
{
print("<p>$menu_ordinary");
}
require ("link_title.php");

if (!$kid AND !$special_mode)
{
print("<h2>$name_of_site</h2>");
print("<font size='4'><p>$welcome_message</p></font>");
}

?>
<p>

<?
include("catcol.php");
$frontpage=1;
include("links.php");

if (!$kid AND $latest)
{
require ("latest.php");
}

print("<p>");
require("config/footer.inc.php");

?>

 

Air




msg:1249938
 4:52 pm on Aug 23, 2001 (gmt 0)

Assuming that config/header.inc.php contains the top portion of the page, and that config/footer.inc.php holds the bottom portion of the page, you should be able to add:

<table width="90%"><tr><td> in config/header.inc.php and add
</td></tr></table> in config/footer.inc.php and that should do it.

iggy99




msg:1249939
 5:28 pm on Aug 23, 2001 (gmt 0)

thanks for the note---

that will not help the various "content" in the miggle of the page...

how about defining 'margin" on a style sheet - how would i do this???

many thanlks

Air




msg:1249940
 5:39 pm on Aug 23, 2001 (gmt 0)

Check out [url="http://www.webmasterworld.com/forum21/959.htm"]this[/url] thread for setting the width and centering with CSS, again it would likely go in the header file.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved