PDA

View Full Version : absolute center


rockgirl84
01-23-2010, 08: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

</head>
<body bgcolor="#e4e1d0">
<div align="center">
<p>
<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
</p>
<p>&nbsp;</p>
<p>
<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

edbr
01-24-2010, 01: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">
<head>
<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;
-->
</style>
</head>

<body >

<div class="container">

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

</body>
</html>

rockgirl84
01-24-2010, 05: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!

xx

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

xxx

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

xxx

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

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

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