[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 366
  • Last Modified:

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
0
Type25
Asked:
Type25
  • 3
  • 2
1 Solution
 
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
 
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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now