...

View Full Version : help with alinment issues



tempest
03-13-2005, 12:45 AM
im making a website and currently has 2 javascript 'objects'(dont really know what to call them) on the front page, problem is that they are both to the left of the screen, one above the other. what i need is one to be in the center and the other to be over to the right but not all the way, id say about 100 pixels away from the right of the screen. any help is GREATLY appreciated

shlagish
03-13-2005, 05:21 AM
CSS is the best solution I think.
Let's say your js objects are divs. You give them ids.
One is 'objONE', the other is 'objTWO'



<head>
<style type='text/css'>

#objONE { margin: 0 auto; }
#objTWO { position: absolute; right: 100px; }

</style>
</head>

Or something similar. You should look into CSS. It's really good for positionning.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum