0

I have been creating my website on a 1280*800 resolution computer and it works just fine until I use another computer with a different resolution. Please help me to solve the problem.

1
  • 1
    Can you provide some sample HTML what you have done so far? Oct 17, 2014 at 11:52

1 Answer 1

0

Use something like this:

#IDdiv {
margin-left:auto;
margin-right:auto;
width:80%; //for example
height:80%; //for example
}

It will look similar on all resolutions. This will center the div horizontally.

1
  • Now, I have other divs under the main div. How do i make those divs to be related to the main div that i called wrapper?
    – de londres
    Oct 17, 2014 at 13:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.