PDA

View Full Version : Calendar not centering... :|


sexaudia
04-04-2007, 02:49 AM
The problem I have is that the calendar doesnt center in IE only Firefox... (see top calendar code) On IE its always on the left justified... :<


SNIP ->>>>

<center>
<?php
// $TOC=1; // UNCOMMENT THIS LINE TO SHOW TEXT ON CALENDAR
//unset($epcAltLink); $epcAltLink="http://www.easyphpcalendar.com/"; // UNCOMMENT THIS LINE TO USE THE ALT LINK FEATURE
require("calendar.php");
?>
</center>
<br><br>
<?php
// SHOW LISTINGS MODULE
// $epcListMouseover=1; // WILL USE THE MOUSE-OVER POPUPS FOR LIST MODE
$LIST=1;
$DF = "M jS, Y (D)";
$template="modern.php";
require("calendar.php");

// THIS IS AN EXAMPLE OF THE MULTI-CALENDAR GENERATOR
/* // Remove this line to show the multi-calendar //
$MULTI=1;
$epcMultiWidth = "600px";
$epcMultiPad = 10;
$epcMultiNav = "580px";
$epcMultiCol = 3;
$epcMultiRow = 2;
require("calendar.php");
*/ // Remove this line to show the multi-calendar //

?>

ve9gra
04-04-2007, 06:16 AM
We'll need a link to your installation to be able to properly troubleshoot your problem.

sexaudia
04-04-2007, 04:09 PM
http://67.113.225.66/calendar/sa_calendar.php

Brian
04-04-2007, 05:50 PM
FWIW, the calendar assumes the alignment attributes of the table, cell, div, span, etc. it is placed in.

I tried putting the source code from your page into Dreamweaver to see what may be happening, but it does not format correctly due errors in HTML on the page (not due to the calendar).

As you can see from the http://67.113.225.66/calendar/demo.php page (in both IE and FF), it will center correctly.

If you fix the HTML on your page, IE should behave as expected. The calendar is already working correctly.