Current location: Hot Scripts Forums » General Web Coding » HTML/XHTML/XML » Center a php page

Center a php page

Reply
  #1 (permalink)  
Old
Newbie Coder
 
Join Date: Dec 2007
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Center a php page

Well, I got tired of messing with boonex dolphin, so I purchased a myspace clone. It works great, but I can't seem to center the page contents. I tried to center it by editing the main css template, but that didn't work. The only thing that worked, was when I placed html center tags around the php in the index file. But that caused the php to malfunction.
Does anyone know how to do this?
Reply With Quote
  #2 (permalink)  
Old
Nico's Avatar
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,129
Thanks: 12
Thanked 93 Times in 89 Posts
Thread moved to HTML section, since PHP itself has nothing to do with what the browser shows.

And... you would really have to post some code, or at least a link so we can take a look.
Reply With Quote
  #3 (permalink)  
Old
Newbie Coder
 
Join Date: Dec 2007
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Here's the index page that I wrapped center tags around, causing it to not work.

PHP Code:

<?

error_reporting
(E_ALL E_NOTICE E_WARNING);
if (
ini_get('register_globals')!="on") {
   
$superglobals = array($_SERVER$_ENV,$_FILES$_COOKIE$_POST$_GET);
   foreach (
$superglobals as $superglobal) {
       
extract($superglobalEXTR_SKIP);
   }
}
require(
'data.php');
require(
'functions.php');
require(
'templates/language/eng.php');
sql_connect();
global 
$conf;
get_settings();
$visit=cookie_get("visit");
$now=time();

$sql_query="select updated from stats";
$stats=sql_execute($sql_query,'get');
$num=sql_execute($sql_query,'num');
$day_of_week=date("w");
$month_start=mktime(0,0,0,date("m"),1,date("Y"));
$week_start=mktime(0,0,0,date("m"),date("d")-$day_of_week,date("Y"));
$day_start=mktime(0,0,0,date("m"),date("d"),date("Y"));
if(
$num==0)    {
  
$sql_query="insert into stats (day_sgnin,week_sgnin,month_sgnin,day_vis,week_vis,month_vis,vis,updated) values ('$num','$num','$num',1,1,1,concat(vis,'|$now'),$now)";
  
sql_execute($sql_query,'');
}
if(
$stats->updated<=$month_start){
  
$sql_query="update stats set
  month_sgnin='0',
  month_vis='0',
  updated='
$now'";
  
sql_execute($sql_query,'');
}
if(
$stats->updated<=$week_start){
  
$sql_query="update stats set
  week_sgnin='0',
  week_vis='0',
  updated='
$now'";
  
sql_execute($sql_query,'');
}
if(
$stats->updated<=$day_start){
  
$sql_query="update stats set
  day_sgnin='0',
  day_vis='0',
  vis='',
  updated='
$now'";
  
sql_execute($sql_query,'');
}

$day=24*3600;

if(
$now-$visit>=$day){

$sql_query="update stats set day_vis=day_vis+1,week_vis=week_vis+1,month_vis=month_vis+1,
vis=concat(vis,'|
$now')";
sql_execute($sql_query,'');
SetCookie("visit",$now,time()+60*60*24,"/",$cookie_url);
}
//if
$user=$_SERVER['QUERY_STRING'];
if(
$user!="") {
    
$sql "SELECT mem_id FROM members WHERE username = '$user'";
    
$num sql_execute($sql,"num");
    if(
$num) {
        
$mem sql_execute("SELECT mem_id FROM members WHERE username = '$user'","get");
        
show_screen("index.php?mode=people_card&p_id=".$mem->mem_id);
    }
}
// event notification
if($conf['events']=="on") {
    
$time=time()-$conf['event_alert']*86400;
    
$res sql_execute("SELECT a.username,a.email,b.even_title,b.even_id,c.mem FROM members a,event_list b,event_invite c WHERE b.start>$time AND c.event_id=b.even_id AND c.status='y' AND c.notified='0' AND a.mem_id=c.mem","res");
    while(
$row=mysql_fetch_object($res)){
        
sql_execute("UPDATE event_invite SET notified=1 WHERE event_id='".$row->even_id."' AND mem='".$row->mem."'","");
        
$body "Hello ".$row->username.", you have upcoming event '".$row->even_title."' after ".$conf['event_alert']." days.\n";
        
$body .= $main_url."/index.php?mode=events&act=viewevent&seid=".$row->even_id;
        
mailing($row->email,$site_name,$system_mail,"Notification about upcoming event",$body);
    }
}
check($mode);
?>
Reply With Quote
  #4 (permalink)  
Old
Nico's Avatar
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,129
Thanks: 12
Thanked 93 Times in 89 Posts
That code doesn't help. We need the template file with the HTML.
Reply With Quote
  #5 (permalink)  
Old
Newbie Coder
 
Join Date: Dec 2007
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Here's the html source that I retrieved from the browser:


HTML Code:
<html>
<head>
<title></title>
<link href="styles/styles.css" type="text/css" rel="stylesheet">
<script type="text/javascript">
var newwindow;
function poptastic(url){
newwindow=window.open(url,'name','height=500,width=200,left=20,top=20,toolbar=no,menubar=no,directories=no,location=no,scrollbars=yes,status=no,resizable=yes,fullscreen=no');
if (window.focus) {newwindow.focus()}
}
</SCRIPT>
</head>
<body topmargin=2 leftmargin=2>
<table width="740">
<tr><td width=100%>
<table cellpadding=0 cellspacing=0 width=100% class="lined">
<style>
background-color:transparent !important;
background-image:url();
}
</style>
<tr>
    <td><center><a href="index.php"><img border="0" src="images/logo.gif"></a></center></td>
    <td height=70 colspan="9" valign="middle"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td>
 </td></tr>
</table> </td></tr> </td> </tr>
<tr>
<td colspan="10"> <table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
          <td align="center" bgcolor="#d5d5d5" class="button-system bodygray"><b><a href="index.php?mode=login&act=home">Home</a></b></td>
          <td align="center" bgcolor="#d5d5d5" class="button-system bodygray"><b><a href="index.php?mode=user&act=inv">Invite</a></b></td>
          <td align="center" bgcolor="#d5d5d5" class="button-system bodygray"><b><a href="index.php?mode=messages&act=inbox">Mail</a></b></td>
          <td align="center" bgcolor="#d5d5d5" class="button-system bodygray"><b><a href="index.php?mode=article&pro=arch">Articles</a></b></td>
          <td align="center" bgcolor="#d5d5d5" class="button-system bodygray"><b><a href="index.php?mode=login&act=menu_err">Search</a></b></td>
          <td align="center" bgcolor="#d5d5d5" class="button-system bodygray"><b><a href="index.php?mode=rank">Rank</a></b></td>
          <td align="center" bgcolor="#d5d5d5" class="button-system bodygray"><b><a href="index.php?mode=blogs">Blog</a></b></td>
          <td align="center" bgcolor="#d5d5d5" class="button-system bodygray"><b><a href="index.php?mode=login&act=menu_err">Classifieds</a></b></td>
          <td align="center" bgcolor="#d5d5d5" class="button-system bodygray"><b><a href="index.php?mode=login&act=menu_err">Forums</a></b></td>
          <td align="center" bgcolor="#d5d5d5" class="button-system bodygray"><b><a href="index.php?mode=login&act=menu_err">Events</a></b></td>
          <td align="center" bgcolor="#d5d5d5" class="button-system bodygray"><b><a href="index.php?mode=login&act=menu_err">Groups</a></b></td>
          <td align="center" bgcolor="#d5d5d5" class="button-system bodygray"><b><a href="index.php?mode=login&act=menu_err">Chat</a></b></td>
          <td align="center" bgcolor="#d5d5d5" class="button-system bodygray"><b><a href="index.php?mode=login&act=menu_err">Calendar</a></b></td>
          <td align="center" bgcolor="#d5d5d5" class="button-system bodygray"><b><a href="index.php?mode=login&act=form">Login</a></b></td>
</tr>
              </table></td>
  </tr>
  <tr align="center">
</tr>
</table></td>
<tr><td width=100%>
<script type='text/javascript'>
<!--
function formIsValid() {
	// check to make sure a valid username has been entered
	if ( document.login.username.value == '' ) {
		alert('Please input a username.');
		return false;
	}

	return true;
}

// a small poupup window to show who's in the chat at the current time
function showInfo() {
	// the size of the popup window
	var width = 400;
	var height = 300;

	// the x,y position of the popup window
	// NOTE: this formula will auto-center the popup on the screen
	var y = (screen.height - height) / 2;
	var x = (screen.width - width) / 2;

	var url = 'info.php';
	var options = 'width=' + width + ',height=' + height + ',top=' + y + ',left=' + x + ',resizable';

	// open the info window as a popup, instead of embedded in webpage
	window.open('chat/info.php' , 'chatting', 'width=400,height=400,toolbar=0,directories=0,menubar=0,status=0,location=0,scrollbars=0,resizable=1');
}

//-->
</script>
<tr><td colspan=3>&nbsp;</td>
<tr><td colspan=3 class="lined">
<table width=100% class="body" cellpadding=0 cellspacing=0>
<tr><td class="padded-6" valign=top width=65%>
<p></p>
</br></br><center><table class="body"><tr><td colspan="5" class="lined bold">&nbsp;&nbsp;Featured:&nbsp;</td></tr><tr>
</tr></table>&nbsp;
<table class="body"><tr><td colspan="5" class="lined bold">&nbsp;&nbsp;Updated:</td></tr><tr>
<td class="lined" width="55px" align="center"><a href="index.php?mode=people_card&p_id=111" border="0"><img src="unknownUser.jpg" width="50"></a><br><a href="index.php?mode=people_card&p_id=111"></a></td></tr></table></center></td>
<td class="padded-6" valign=top>
<p><i></i>
</br>
<table class="body" align="center">
<form action="index.php" method=post>
<input type="hidden" name="mode" value="login">
<tr><td>email:</td><td><input type="text" size=15 name="email"></td>
<tr><td>Password:</td><td><input type="password" size=15 name="password"></td>
<tr><td></td><td align=right class="action"><a href="index.php?mode=forgot">Forget your password?</a></td>
<tr><td></td><td align=right><input type="checkbox" name="remember" value="ON">Remember me</td>
<tr><td></td><td align=right><input type="submit" value="Sign In"></td>
</form>
</table>
</br>
</br>
<table align="center" width=100% class="body">
<tr><td bgcolor=white class="lined header1">
<tr><td>
</td>
<tr><td bgcolor=white class="lined"><br><center><a href="javascript:showInfo();"><b>void</b></a></center>
<br>
<center>void</center>
<br><br><br>
<center><a href="index.php?mode=join"><font size="4" color="red"><b>Join Now!</b></font></a></center>
<center><span></span></center>
<br>
<br>
<center><span>void</span><br><span>void</span></center>
<br><br>
<br>
<table class="body">
<br>
<tr><td></td>
<td></td>
<tr><td></td>
<td></td>
</table>
</td>
</table>
</td>
</table>
</td>
<tr><td colspan=3>&nbsp;</td>
</table>
</td>
<tr><td width="100%">
</td></body></html>


And here's the style.css file:

css Code:
  1. body{background-image:url();
  2. background-position:50% 0%; background-attachment:fixed; background-repeat:no-repeat; scrollbar-face-color:EEEEEE; }
  3. .mainfont {  font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif; font-size: 10px; font-style: normal; color:#000000}
  4.  
  5. .mainsmall {  font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif; font-size: 9px; font-style: normal; color:#000000}
  6.  
  7. .maingray {  font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif; font-size: 10px; font-style: normal; color:#7b7b7b}
  8.  
  9. .boxgray {  font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif; font-size: 9px; font-style: normal; color:#7b7b7b}
  10.  
  11. .smallgray {  font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif; font-size: 8px; font-style: normal; color:#7b7b7b}
  12.  
  13. .body {  font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif; font-size: 11px; font-style: normal; color:#000000}
  14. .body   a:link       { color: #000000; text-decoration: underline; }
  15. .body   a:active  { color: #000000; text-decoration: underline; }
  16. .body   a:visited  { color: #000000; text-decoration: underline; }
  17. .body   a:hover       { color: #000000; text-decoration: underline; }
  18.  
  19. .fbody {font-family:verdana,arial,sans-serif,helvetica; font-size:8pt; text-decoration:none; }
  20. .fbody  a:link{color:#003399;text-decoration:none; }
  21. .fbody  a:active{color:#003399;text-decoration:none;}
  22. .fbody  a:visited{color:#003399;text-decoration:none;}
  23. .fbody  a:hover{color:#cc0000;}
  24.  
  25. .body-rollover { font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif; font-size: 11px; font-style: normal; color:#000000 }
  26. .body-rollover  a:link     { color: #000000; text-decoration: none; }
  27. .body-rollover  a:active     { color: #000000; text-decoration: none; }
  28. .body-rollover  a:visited     { color: #000000; text-decoration: none; }
  29. .body-rollover  a:hover      { color: #000000; text-decoration: underline; }
  30.  
  31. .bold { font-weight: bold; }
  32.  
  33. .small { font-size: 10px; }
  34.  
  35. .large { font-size: 12px; }
  36.  
  37. .light { color: #7F7F7F; }
  38.  
  39. .dark { background: #AAAAAA; }
  40.  
  41. .system_message { background-color: #FFDAB2; }
  42.  
  43. .form_tip { background-color: #FDF2EA; }
  44.  
  45. .padded-small { padding: 0px 0px 4px 0px; }
  46.  
  47. .padded-large { padding: 0px 0px 10px 0px; }
  48.  
  49. .padded-6 { padding: 6px; }
  50.  
  51. .inline { padding: 6px 6px; }
  52.  
  53. .inline-last { padding-top: 6px; padding-left: 6px; }
  54.  
  55. .hover-only a:link  { text-decoration: none; }
  56. .hover-only a:active    { text-decoration: none; }
  57. .hover-only a:visited { text-decoration: none; }
  58. .hover-only a:hover     { text-decoration: underline;}
  59.  
  60. .orangeheader {  font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif; font-size: 25px; font-style: normal; color:#ff6600}
  61.  
  62. .orangebody {  font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif; font-size: 11px; font-style: normal; color:#ff6600}
  63.  
  64. .bodytip {  font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif; font-size: 9px; font-style: normal; color:#000000}
  65.  
  66. .bodygray {  font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif; font-size: 11px; font-style: normal; color:#555555}
  67.  
  68. .bodyheader {  font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif; font-size: 13px; font-style: normal; color:#000000}
  69.  
  70. .footer {  font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif; font-size: 10px; font-style: normal; color:#7b7b7b}
  71.  
  72. a:link {
  73.     color:#7b7b7b;
  74.     }
  75.  
  76. a:active {
  77.     color:#7b7b7b;
  78.     }
  79.  
  80. a:visited {
  81.     color:#7b7b7b;
  82.     }
  83.  
  84. .button-system {
  85.  border: 1px solid #C0C0C0;
  86.  padding: 4px 6px;
  87.  background-color: #FFFFFF;
  88.  cursor: pointer;
  89.  }
  90.  
  91. .header1 {
  92.  border: 1px solid #C0C0C0;
  93.  padding: 4px 6px;
  94.  text-align: left;
  95.  font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
  96.  font-size: 12px;
  97.  font-weight: bold;
  98.  color: #000000;
  99.  }
  100.  
  101. .td-shade   { background: #EEEEEE; }
  102.  
  103. .td-lined       { background: #EEEEEE; border: 1px solid #C0C0C0; }
  104. .td-lined-bottom    { background: #EEEEEE; border-bottom: 1px solid #C0C0C0; }
  105. .td-lined-right     { background: #EEEEEE; border-right: 1px solid #C0C0C0; }
  106. .td-lined-top      { background: #EEEEEE; border-top: 1px solid #C0C0C0; }
  107. .td-lined-left    { background: #EEEEEE; border-left: 1px solid #C0C0C0; }
  108.  
  109. .title    { padding: 0px 6px 0px 6px; font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; color: #000000; }
  110.  
  111. .title h1 {
  112.     font-size: 12px;
  113.     font-weight: bold;
  114.     color: #505050;
  115.     margin: 0px 0 0 0px;
  116. }
  117.  
  118. .title-box   { padding: 0px 0px 0px 0px; font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif; font-size: 11px; font-weight: bold; color: #000000; }
  119. .title-box a:link     { color: #000000; text-decoration: none; }
  120. .title-box a:active     { color: #000000; text-decoration: none; }
  121. .title-box a:visited    { color: #000000; text-decoration: none; }
  122. .title-box a:hover   { color: #000000; text-decoration: underline;}
  123.  
  124. .title-link     { padding: 0px 6px 0px 0px; font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif; font-size: 11px; font-weight: normal; color: #555555; }
  125. .title-link a:link   { color: #555555; text-decoration: none; }
  126. .title-link a:active    { color: #555555; text-decoration: none; }
  127. .title-link a:visited   { color: #555555; text-decoration: none; }
  128. .title-link a:hover     { color: #555555; text-decoration: underline;}
  129.  
  130.  
  131. .subtitle       { padding: 0px 0px 0px 0px; font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif; font-size: 11px; font-weight: bold; color: #555555; }
  132. .subtitle a:link    { text-decoration: none; }
  133. .subtitle a:active  { text-decoration: none; }
  134. .subtitle a:visited { text-decoration: none; }
  135. .subtitle a:hover   { text-decoration: underline;}
  136.  
  137. .tip-title   { padding: 0px 6px 0px 6px; font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold; color: #000000; }
  138.  
  139. .tip-text     { padding: 0px 6px 0px 6px; font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: normal; color: #000000; }
  140.  
  141. .matched { font-weight: bold; }
  142.  
  143. .table-photo { background: #FFFFFF; border: 1px solid #C0C0C0; }
  144.  
  145. .caption    { color: #000000; }
  146. .caption    a:link         { color: #000000; text-decoration: none; }
  147. .caption    a:active   { color: #000000; text-decoration: none; }
  148. .caption    a:visited   { color: #000000; text-decoration: none; }
  149. .caption    a:hover       { color: #000000; text-decoration: underline; }
  150.  
  151. .table-content  { margin: 30px; }
  152.  
  153. .table-tip   { margin: 10px; }
  154.  
  155. .updated    { font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif; font-size: 9px; font-weight: bold; color: #ff6600}
  156. .updated    a:link         { color: #ff6600; text-decoration: none; }
  157. .updated    a:active   { color: #ff6600; text-decoration: none; }
  158. .updated    a:visited   { color: #ff6600; text-decoration: none; }
  159. .updated    a:hover       { color: #ff6600; text-decoration: underline; }
  160.  
  161. .form-comment { font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: normal; color:#ff6600}
  162. .form-comment      a:link       { color: #ff6600; text-decoration: none; }
  163. .form-comment      a:active  { color: #ff6600; text-decoration: none; }
  164. .form-comment      a:visited  { color: #ff6600; text-decoration: none; }
  165. .form-comment      a:hover      { color: #ff6600; text-decoration: underline; }
  166.  
  167. .step-by-step { font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: normal; color:#000000}
  168.  
  169. .step-by-step-current { font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold; color:#000000}
  170.  
  171. .search-title { font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif; font-size: 11px; font-weight: bold;}
  172. .search-title a:link       { color: #000000; text-decoration: none; }
  173. .search-title a:active   { color: #000000; text-decoration: none; }
  174. .search-title a:visited     { color: #000000; text-decoration: none; }
  175. .search-title a:hover      { color: #000000; text-decoration: underline; }
  176.  
  177.  
  178. .post { margin-left: 20px }
  179.  
  180. .post-color1 { background-color: #DDDDDD; }
  181.  
  182. .post-color2 { background-color: #EAEAEA; }
  183.  
  184. .post-link  { font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif; font-size: 9px; font-weight: bold; color: #ff6600}
  185. .post-link  a:link     { color: #ff6600; text-decoration: none; }
  186. .post-link  a:active     { color: #ff6600; text-decoration: none; }
  187. .post-link  a:visited     { color: #ff6600; text-decoration: none; }
  188. .post-link  a:hover   { color: #ff6600; text-decoration: underline; }
  189.  
  190. .action  { font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold; color: #ff6600}
  191. .action      a:link   { color: #ff6600; text-decoration: none; }
  192. .action      a:active    { color: #ff6600; text-decoration: none; }
  193. .action  a:visited    { color: #ff6600; text-decoration: none; }
  194. .action      a:hover      { color: #ff6600; text-decoration: underline; }
  195.  
  196. /* WIDGET STYLES START */
  197.  
  198. .lined    { border: 1px solid #C0C0C0; }
  199. .lined-bottom   { border-bottom: 1px solid #C0C0C0; }
  200. .lined-right    { border-right: 1px solid #C0C0C0; }
  201. .lined-top   { border-top: 1px solid #C0C0C0; }
  202. .lined-left  { border-left: 1px solid #C0C0C0; }
  203.  
  204. .linedb             { border: 1px solid #639ACE; }
  205. .linedb-bottom  { border-bottom: 1px solid #639ACE; }
  206. .linedb-right   { border-right: 1px solid #639ACE; }
  207. .linedb-top      { border-top: 1px solid #639ACE; }
  208. .linedb-left        { border-left: 1px solid #639ACE; }
  209.  
  210. .mugshot-online   { background-color: #C0C0C0; }
  211.  
  212. .mugshot-offline        { background-color: #FFFFFF; }
  213.  
  214. .namelink-online            { font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif; font-size: 11px; font-weight: bold; color: #000000; }
  215. .namelink-online a:link     { color: #000000; }
  216. .namelink-online a:active   { color: #000000; }
  217. .namelink-online a:visited  { color: #000000; }
  218. .namelink-online a:hover    { color: #000000; }
  219.  
  220. .namelink-offline         { font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif; font-size: 11px; font-weight: normal; color: #000000; }
  221. .namelink-offline a:link    { color: #000000; }
  222. .namelink-offline a:active  { color: #000000; }
  223. .namelink-offline a:visited { color: #000000; }
  224. .namelink-offline a:hover   { color: #000000; }
  225.  
  226. .minicard            { background-color: #FFFFFF; }
  227.  
  228. .error { background: #ff7e00; border: 1px solid #ff6600; }
  229.  
  230. .feedback { background: #DDDDDD; border: 1px solid #C0C0C0; }
  231.  
  232. .datehead {
  233.  border: 1px solid #C0C0C0;
  234.  padding: 4px 6px;
  235.  text-align: center;
  236.  font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
  237.  font-size: 12px;
  238.  font-weight: bold;
  239.  font-size: 25px;
  240.  font-style: normal;
  241.  color: #AF0451;
  242. }
  243.  
  244. .datetitle {
  245.  border: 1px solid #F1F1F1;
  246.  padding: 2px 2px;
  247.  text-align: center;
  248.  font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
  249.  font-size: 12px;
  250.  font-weight: bold;
  251.  font-style: normal;
  252.  color: #333333;
  253.  background-color: #F1F1F1;
  254. }
  255.  
  256. .daytitle {
  257.  border: 1px solid #F1F1EE;
  258.  padding: 2px 2px;
  259.  text-align: center;
  260.  font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
  261.  font-size: 10px;
  262.  font-weight: bold;
  263.  font-style: normal;
  264.  color: #333333;
  265.  background-color: #EEEEEE;
  266. }
  267.  
  268. .daytitlecol {
  269.  border: 1px solid #F1F1EE;
  270.  padding: 2px 2px;
  271.  text-align: center;
  272.  font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
  273.  font-size: 10px;
  274.  font-weight: bold;
  275.  font-style: normal;
  276.  color: #333333;
  277.  background-color: #CCCC99;
  278. }
  279. h1 {
  280.   margin-bottom:0px;
  281. }
  282. h2 {
  283.   font-size:90% !important;
  284. }
  285. #colorstable {
  286.     position: absolute;
  287.     z-index: 45;
  288.     top: 0px;
  289.     left: 0px;
  290.     display: none;
  291.     border: 2px #c9c37e solid;
  292.     background-color: #FFFFFF;
  293. }
  294. #colorstable td {
  295.     font: 11px/11px Arial, Geneva, Sans-Serif; color: #1a3e51;
  296.     margin: 1px;
  297.     height: 11px;
  298.     width: 13px;
  299. }
  300. #colorstable td.top {
  301.     font: 12px/18px Arial, Geneva, Sans-Serif; color: #1a3e51;
  302.     height: 18px;
  303.     width: 320px;
  304. }
  305. .divi {
  306.     margin-top: 3px;
  307.     margin-bottom: 5px;
  308.     padding-bottom: 5px;
  309.     border-bottom: 1px #000000 solid;
  310.     font: 2px/2px Arial, Geneva, Sans-Serif;
  311. }
  312. .divisml {
  313.     margin-top: 2px;
  314.     margin-bottom: 2px;
  315.     border-bottom: 1px #000000 solid;
  316.     font: 2px/2px Arial, Geneva, Sans-Serif;
  317. }
  318. .colorshow { float: left; width: 16px; height: 18px; border: 1px #000000 solid; font-size: 2px; line-height: 2px; margin-right: 5px; background-color: #000000; margin-top: 3px; }

Last edited by Nico; 05-31-08 at 02:54 AM. Reason: [highlight=css] wrappers.
Reply With Quote
  #6 (permalink)  
Old
Newbie Coder
 
Join Date: Jun 2006
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
I'm presuming the templates/language/eng.php file is the template for the main site, else have a look for a header.php file or simular, then change <table width="740"> for <table width="740" align="center">.

That should fix it
Reply With Quote
  #7 (permalink)  
Old
UnrealEd's Avatar
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 27 Times in 27 Posts
Just a note: you're missing a DOCTYPE declaration
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Reply With Quote
  #8 (permalink)  
Old
Newbie Coder
 
Join Date: Dec 2007
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks TG, that probably would've worked on most things. I've tried almost everything, and nothing seems to work. I'm about ready to give up and put it in a iframe.
Reply With Quote
  #9 (permalink)  
Old
therocket954's Avatar
Community Liaison
 
Join Date: Jul 2007
Location: Michigan, USA
Posts: 334
Thanks: 2
Thanked 8 Times in 8 Posts
As tg said, change <table width="740"> to <table width="740" align="center">

As well, it appears to work for me if you fix the table structure. Simplest way is on line 27: Change this:
Code:
</table> </td></tr> </td> </tr>
To this:
Code:
</table> </td></tr>
Looks like you were closing a "td" and "tr" tag that wasn't opened.
__________________
--Eric Allison
Twitter: http://www.twitter.com/Eric_Allison
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Send info from a form to a php page magicadmin JavaScript 3 11-07-06 02:50 PM
include Javascript in PHP page phpnovice PHP 2 06-25-06 09:10 AM
Multiple Page PHP Registration form losse PHP 6 06-24-06 10:33 PM
not working on a php page pkcidstudio JavaScript 4 05-22-06 03:27 PM
question about updating a page or database for an, php and mysql updating mikewooten PHP 1 02-12-04 12:11 AM


All times are GMT -5. The time now is 07:05 AM.
vBulletin® Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.