Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

help with formula

Name: Anonymous 2012-06-12 2:49

I'm trying to center an image on my screen based on the images width. I want there to be an equal amount pixels between each side of the image. I have the width of the image, and the width of the window is 800 pixels.

I've never been good at math please help.

Name: Anonymous 2012-06-12 6:44

left: (screen width - image width) / 2

You'll want to round that solution.  And crack open a basic algebra book.

Name: Anonymous 2012-06-19 21:16

get

Name: Anonymous 2012-06-19 21:16

to

Name: Anonymous 2012-06-21 0:07

Huh?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List