How to center WebPage(when zoom in/zoom out) putting container not work.help pls

Citigate Travel Plus <?php include 'layoutbasic.php'; require_once("connect.php"); session_start(); $page="homepage.php"; $status = $_SESSION['status']; $position=""; $featuredspot = array(); $slideshow = mysql_query("select * from tblhomepageslideshow ORDER BY ID DESC "); while($r=mysql_fetch_array($slideshow)) { array_push($featuredspot, $r[1]); } ?>

<div class="current">
	<img src="<?php echo $featuredspot[0]?>" alt="Photo Gallery" width="700" height="280" class="gallery"/>
</div>
<div>
	<img src="<?php echo $featuredspot[1]?>" alt="Photo Gallery" width="700" height="280" class="gallery"/>
</div>
<div>
	<img src="<?php echo $featuredspot[2]?>" alt="Photo Gallery" width="700" height="280" class="gallery"/>
</div>
<div>
	<img src="<?php echo $featuredspot[3]?>" alt="Photo Gallery" width="700" height="280" class="gallery"/>
</div>
<div>
	<img src="<?php echo $featuredspot[4]?>" alt="Photo Gallery" width="700" height="280" class="gallery"/>
</div>
<?php if($status==1) { $email = $_SESSION['email']; $check = mysql_query("select * from tblmember where emailadd = '$email' "); $row1 = mysql_fetch_assoc($check); $fname = $row1['firstname']; $position = $row1['status']; echo "
"; echo "

Hello, $fname

"; echo "
"; } else{ echo "
"; echo "

Citigate Travel Plus

"; echo "
"; } include 'layoutmenus.php'; ?>
<?php $per_page = 4; $start = $_GET['start']; $record_count = mysql_num_rows(mysql_query("SELECT * FROM tblpromopackages")); $max_pages = $record_count / $per_page; $promo = mysql_query("select * from tblpromopackages LIMIT $start, $per_page"); $x=500; $y=410; $picture=0; while($row=mysql_fetch_array($promo)) { $id = $row[0]; $pname = $row[1]; $pprice = $row[2]; $image = $row[3]; echo "
"; echo"
"; echo "$pname"; echo ""; echo "
"; echo ""; echo ""; echo ""; echo ""; echo"
"; if($position=="admin") { $a=$x-8; $b=$y-8; echo "
"; echo "[Edit]"; echo"
"; $a=$x-8; $b=$y+180; echo "
"; echo ""; echo"
"; } if($picture<1) { $y = $y+250; $picture=$picture+1; } else { $picture=0; $y=410; $x=$x+210; } } if($position=="admin"){ echo "
"; echo "[Add]"; echo"
"; echo "
"; echo "[Add]"; echo"
"; } if($max_pages>1){ echo "
"; echo "
    "; $prev = $start - $per_page; $next = $start + $per_page; if ($start>0){ echo " prev "; ?>
		<script type="text/javascript">

		window.scrollTo(0,450);

		</script>
		<?php
		}

$i=1;
for ($x=0;$x<$record_count;$x=$x+$per_page)
{
	 if ($start!=$x)
		echo "<a href='homepage.php?start=$x'>$i</a> ";
	 else
		echo "<a href='homepage.php?start=$x'><b>$i</b></a>";
	 $i++;
}


if ($start<$record_count-$per_page)
	   echo "<a href='homepage.php?start=$next'>next</a>";
	   

echo "</ul>";
echo"</div>";	
}

?>

Start here
http://css-tricks.com/centering-css-complete-guide/

Sponsor our Newsletter | Privacy Policy | Terms of Service