If an HTML element has following CSS property, what would be its position on the screen?
position: absolute;
bottom: 0;
left: 0;
right: 0;
top: 0;
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.
It seems that most browsers actually has the element fill the window (or the parent element, if the parent element has absolute or relative position)
If you add a
widthdeclaration to the CSS, however, theleftwill be enforced and therightwill be ignored.If you add a
heightdeclaration, thebottomwill be ignored.http://jsfiddle.net/tjFvL/