Horizontal scrollbar in IE

I have a website which fits perfectly in the web browser (either IE or gecko based), that is, it doesn't show with horizontal scrollbars.

My problem comes when i put the website in it's own frame, here's my code:

string strHTML = @"<html><title>Edit by surf</title>" +
"<frameset rows='95%,5%'>" +
"<frame name='main' src='" + location + "/index.htm' scrolling='auto'>" +
"<frame name='toolbar' src='toolbar.aspx' scrolling='no' noresize>" +
"</frameset></html>";

aplogies for the above C# code, but you get the idea.

My problem is, the website is is about 20px to big and thus showing a horizontal scrollbar.

In mozilla it doesn't show a scrollbar in IE it does.  If it's in it's own browser window it doesn't show a scrollbar.

What's going on?

PS. The website is completely centered with CSS so there are no elements that are anywhere near the edge of the screen.

Thank you
LVL 9
Type25Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

php-webdesignCommented:
seen this problem manny times... you might want to set the body width somewhat smaller... is a IE bug (if i am right, when you remove the DOC tage on top of the element the problem is also solved, but not the way you want it)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Type25Author Commented:
IE bug - veeeery surprising  :)

i've changed the width to 95% and it seems to have worked, are there any side effects i should be aware of??

0
php-webdesignCommented:
not that i know off... only that the whole world should be using firefox... should make our life much easier :)
0
Type25Author Commented:

Thanks! :)
0
php-webdesignCommented:
And thank you! here to help you
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.