I’ve looked at a googol google results without finding any that work.
I need to have my div (height 333 px, width 550 px) to be centered horizontally and always be 275 px from the top. Every time I try to do this it just disappears.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If the div should sit on top you have to use
position:absolute. Otherwise, the answer from @sdleihssirhc should work.Example with positioning
Use tools like Dragonfly or Firebug to inspect the properties if it still disappears.