Ezio Posted September 9, 2013 Share Posted September 9, 2013 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 More sharing options...
Don E Posted September 9, 2013 Share Posted September 9, 2013 JavaScript maybe able to help you with that; in getting the width and height of a webpage. Link to comment Share on other sites More sharing options...
Ezio Posted September 9, 2013 Author Share Posted September 9, 2013 How? should i post my question in JS? Link to comment Share on other sites More sharing options...
Don E Posted September 9, 2013 Share Posted September 9, 2013 Would probably be a good idea to post in JS. Link to comment Share on other sites More sharing options...
Ingolme Posted September 11, 2013 Share Posted September 11, 2013 I wouldn't recommend it. Can you go deeper into the reasons behind this? There probably is a better solution than what you're trying to do. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now