Horizontal scrollbar in IE

Posted on 2004-11-15
Last Modified: 2012-08-14
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>" +

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
Question by:Type25
    LVL 5

    Accepted Solution

    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)
    LVL 9

    Author Comment

    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??

    LVL 5

    Expert Comment

    not that i know off... only that the whole world should be using firefox... should make our life much easier :)
    LVL 9

    Author Comment


    Thanks! :)
    LVL 5

    Expert Comment

    And thank you! here to help you

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Both Easy and Powerful How easy is PHP? (  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
    Do you want to insert HTML5 video into your site? This is the tutorial how to do so. What are the main advantages of HTML5 video? 1) Have good compression, good image quality, and low decode processor use. 2) It is royalty-free 3) It is easi…
    The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
    HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now