FORUMS: list search recent posts

Centering with Math?

COW Forums : Web Design

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
LGABoarder
Centering with Math?
on Oct 29, 2007 at 4:12:54 pm

Maybe there's a different way to do this than I'm thinking. I'm currently running a js code that essentially does what I was asking below. In the script it defines the X and Y positions for a div tag. I need the div tag to center but how can I do that based on the fact that the js creates the x/y rather than the CSS doc (which has a div centering code) Is there some way to say that my Xpos is 50% (screen width) subtract 50% of the div width? Here's the codes...

http://img337.imageshack.us/img337/5111/scripthi4.png

Jeff McBride
Motion Graphic Designer/Editor
LimeGreen
Chicago, IL

http://www.limegreenproductions.com



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]