Forum Moderators: open

Message Too Old, No Replies

IE7 internal vertical scrollbar is appearing

I want to remove the internal vertical scrollbar that is appearing in IE7

         

treanbean

2:48 pm on Aug 15, 2008 (gmt 0)

10+ Year Member



I have been trying to remove the internal vertical scrollbars that appear around my div#page in IE7 for days.

I am using the overflow style to wrap my container div around its floating elements, and am currently using overflow:hidden without a set height and it is rendering correctly in all browsers except IE7 - It seems as though this change didn't change IE7 at all.

I have tried all variations of the overflow style including removing it altogether with no luck. I am beginning to think that is not the problem, but cannot figure out is causing the scrollbar.

The scrollbar is only appearing in IE7 - and it only scrolls and contains the contents of the div "page" - it makes the scrolling box almost big enough to fit the contents, scrolling inside of the page div just allows you to see more blank space

I would appreciate absolutely any help I am at my wits end.

Thank you for any help...

HTML************************

<div class="hidden">
<!--[if lte IE6]>
<link rel="stylesheet" href="css/IE6.css" type="text/css" media="screen" />
<![endif]-->
</div>

<div class="hidden">
<!--[if IE 7]>
<link rel="stylesheet" href="css/IE7.css" type="text/css" media="screen" />
<![endif]-->
</div>

</head>
<body><!--makes the current page indicated by turning the secondary navigation link white-->

<div id="main"><!--entire site container-->

<div id="page"> <!--where the scrollbar starts-->

<div id="bottomswoop"></div>

<div id="pagecontent"> <!--contains everything to the right of the dotted line-->

<p class="pagecontentonly">We offers a large </p>

<div id="bottompagecontent"> </div> <!--closes bottompagecontent-->

</div> <!--closes pagecontent div-->

<div id="leftside">
<ul>
<li id="general"><a href="contact.html">General Contact Information</a></li>
<li id="customer"><a href="customer-service.html">Customer Service</a></li>
<li id="financial"><a href="financial-services.html">Financial Services</a></li>
</ul>
</div>

</div> <!--closes page div - where the scrollbar ends-->

</div> <!--closemain-->

</body>
</html>

IE7 OVERRIDES STYLESHEET *********************************************
.hidden{
display:none;
}

div#leftside ul {
list-style-type: none;
line-height:2em;
padding-top:0px;
padding-left:0px;
margin-left:25px;
}

div#leftside {
max-width: 190px;
}

div#pagecontent {
max-width:500px;
}

SITE CSS STYLESHEET************************************************
body,html{
background: #002f13;
margin:0;
padding:0;
font-family:Trebuchet MS, Helvetica, sans-serif;
color:#fff;
font-size:11px;
padding-bottom:10px;
}

hr{
margin:20px 0;
}

#main{
margin-right:auto;
margin-left:auto;
width: 710px;
min-height:100%;
position:relative;
color:#fff;
background: #0a4823;
}

/*Affects everything in the light green color on the page*/
#page {
background-color:#659A66;
width:100%;
overflow:hidden;
padding:0px;
}

/*affects every thing to the right of the dotted line*/
#pagecontent {
float:right;
width:510px;
min-height:375px;
padding-bottom:10px;
}

#pagecontent p.pagecontentonly{
padding: 0 20px;
line-height:1.7em;
font-size:110%;
}

csuguy

8:37 am on Aug 16, 2008 (gmt 0)

10+ Year Member



This could be wrong - but it looks like your giving the body a 10px padding to the bottom. You are then setting the div 'main' to 100% height. This is most likely causing the problem. Remove the padding-bottom to the body. Tell me if that fixes it!

csuguy

8:40 am on Aug 16, 2008 (gmt 0)

10+ Year Member



You might also try setting the position for main to absolute and then setting the top and left attributes to 0px.

csuguy

4:28 pm on Aug 16, 2008 (gmt 0)

10+ Year Member



Oh - and I was wondering, whats with the divs in the head section?