Welcome to WebmasterWorld Guest from 54.145.118.24

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

basic PHP help needed

we need to somehow define page width...

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

Junior Member

10+ Year Member

joined:Aug 1, 2000
posts:165
votes: 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

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 10, 2000
posts:1253
votes: 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.

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

Junior Member

10+ Year Member

joined:Aug 1, 2000
posts:165
votes: 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

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 10, 2000
posts:1253
votes: 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.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members