Jump to content

Centering Canvas


writer1
 Share

Recommended Posts

Hi,

 

Thank you for your reply and helpful suggestions. I have done some more online searching and came up with the following which works:

 

canvas{ border:1px solid black; position: absolute; top: 50%; left: 50%; ; margin-top: -320px;}

Seems to work OK.

Edited by writer1
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
 Share

×
×
  • Create New...