View Full Version : absolute center

01-23-2010, 07:30 PM
Now that all the flash parts is nearly running perfectly, polishing the website is even more difficult :(

We read through a few previous threads people asking about putting everything in absolute center and tried it out ourselves.... but couldn't get it working... align it was easy (only 1 click away)

but valign just won't work :x

This is our working code for align

<body bgcolor="#e4e1d0">
<div align="center">
<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {

once if we change the
<div align="center"> to <div valign="middle"> or
<div align="center" valign="center"> or
<div align="center" valign="middle">

the flash part will get move to the left or simply staying align only :(

are we scripting it wrong?
please help again
thanks xx

01-24-2010, 12:56 AM
if you have sizes set you could use top and bottom margins
as in these two classes below
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
.container { width:600px; height:600px; position:relative;

.box{ width:400px; height:400px; background-color:#F00; position:relative; margin: 100px auto
100px auto;

<body >

<div class="container">

<div class="box">content in the box class</div>


01-24-2010, 04:00 PM
oh :D thanks again edbr
me and kitty are deciding to take a day break of all this today
all the codes are turning us crazzzzy

will try it out tomorrow and report back!


01-25-2010, 02:31 PM
:grin: oh yeah!
after a little tweak and tune, we have a centered website!
thanks edbr


01-25-2010, 02:57 PM
:grin: oh yeah!
after a little tweak and tune, we have a centered website!
thanks edbr


When are you going to post a link for this website so we can all see it??

01-25-2010, 03:40 PM
Once it's perfect :P
we are working hard on the polishing :D

01-25-2010, 04:02 PM
OK, keep us posted :)