Jump to content

Help Please..!


Ezio

Recommended Posts

How do you get the width and height of a webpage? I am manually trying to center an image on a webpage. I plan on getting the width and height of a webpage and setting the coordinates of the image to the width/2 and height/2.

Link to comment
Share on other sites

download fire bug install in firefox and open browser and open your webpage then right click of your image and firebug in right side display css code change the code and adjust your image and replace with your origenal css code

Edited by harpalsinh999
Link to comment
Share on other sites

I am manually trying to center an image on a webpage. I plan on getting the width and height of a webpage and setting the coordinates of the image to the width/2 and height/2.

 

Unless you have an unusual or dynamic situation I think it is far more normal to just use css.

Edited by davej
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...