I am trying to give some width to body and trying to align it right to the screen using below code
body{
width : 75%;
float : right;
}
It is not working only in IE. How can I fix that..? By the default it is aligning to left.
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.
Floating your body makes no sense, since it’s the top op the DOM tree. What would it float in?
If you want to give the impression that your body is only occuping the right 75% of the screen, add a margin instead.
This will work.
If this is not acceptable, use a div around your content.