Click here to Skip to main content
15,891,657 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear all,

I fixed my webform size with 997px(div); If run in my browser its working fine & scroll bar is not coming in browser.

I used propery margin: 0 auto for div tag. & nwo i am getting scroll bar.

What to do?
Posted
Updated 25-Apr-12 0:39am
v3

1 solution

No problem friends!

Please specify your browser in that you get the problem and paste a part of exact code.
Another thing is that your problem is not clear in the question that why you using margin.
There are no error in your code.But still you can use such like that:

In style or .css file add this

CSS
.divclass
{
width:997px;
margin:0px;
padding:0px;
}


HTML
<div class="divclass"></div>
 
Share this answer
 
v2
Comments
SIVA RAMAMOORTHY 25-Apr-12 7:11am    
I am testing with IE8.0
The issue is when i test my webpage its working fine & scroll bar is not coming.
But When i am zoom out the page its moving to the left(left align)
If i use margin: 0 auto property i can get it according to my requirement but scroll bar is coming. if i remove this property scroll bar will not come but if i zoomout if will move to the left.

This is the issue

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900