What keeps a div from extending horizontally past the edge of the screen when there are horizontal scroll bars?
The DIV’s content will overflow out to the left but not the DIV itself.
What can make the div go all the way to the right?
Thanks
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.
For the div to expand out of the view pane you need it to have a width. If it doesn’t have a width then it takes the width of it’s container. When content is bigger than it’s container (the div or body, etc.) then it behaves according to overflow, the default being visible.
options are:
http://www.w3schools.com/Css/pr_pos_overflow.asp