Connecting Tech Pros Worldwide Help | Site Map

The scroll bar is missing in IE6 due to issues with relative positioning in CSS

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 30th, 2006, 08:49 PM
Newbie
 
Join Date: Nov 2006
Posts: 2
Default The scroll bar is missing in IE6 due to issues with relative positioning in CSS

I am developing a page that is all css and I am using "relative" postitioning to position the main text area of the page. In IE6, I am missing the scrollbar on the right. I'm not having this problem in Firefox or IE7.

Check out the page here: http://galvestonairconditioning.com/

Heres the css:

#mainbody {
top: 175px;
position: relative;
left: 200px;
width: 549px;
text-align: justify;
}

Any help that anyone could pass my way to resolve this issues would be greatly appreciated.

Thanks!
Dustie
Reply
  #2  
Old December 1st, 2006, 07:17 AM
snowdonkey's Avatar
Member
 
Join Date: Aug 2006
Location: Chicago
Posts: 37
Default

The scroll bar works in IE 6 for me. Have you since fixed the problem?
Reply
  #3  
Old December 1st, 2006, 02:44 PM
Newbie
 
Join Date: Nov 2006
Posts: 2
Default

Quote:
Originally Posted by snowdonkey
The scroll bar works in IE 6 for me. Have you since fixed the problem?
No, I haven't fixed it. It does show some but not 100% of the time when it's needed.
Reply
  #4  
Old February 20th, 2007, 08:14 PM
Newbie
 
Join Date: Feb 2007
Posts: 1
Default

I have a similar problem with one page on my site. The entire framework is the same, but on this one page there's the problem that the scrollbar doesn't always appear in IE6.

Anyway, I looked at your styles and made these changes:
#container {
margin: 0px auto;
padding: 0;
width: 744px;
position: relative;
}

#mainbody {
top: 175px;
position: absolute;
left: 200px;
width: 549px;
text-align: justify;
}
That seemed to fixed the scrollbar problem. Alternately, I would've chosen to use margin-left and margin-top instead of left and top in #mainbody, thus removing the need for the position: relative.

Now if only I could fix my own problem as easily.

Last edited by webgnome; February 20th, 2007 at 08:16 PM. Reason: Added alternate solution
Reply
  #5  
Old February 22nd, 2007, 08:41 PM
Expert
 
Join Date: Oct 2006
Location: NC
Posts: 1,723
Default

Quote:
Originally Posted by webgnome
I have a similar problem with one page on my site. The entire framework is the same, but on this one page there's the problem that the scrollbar doesn't always appear in IE6.

Anyway, I looked at your styles and made these changes:
#container {
margin: 0px auto;
padding: 0;
width: 744px;
position: relative;
}

#mainbody {
top: 175px;
position: absolute;
left: 200px;
width: 549px;
text-align: justify;
}
That seemed to fixed the scrollbar problem. Alternately, I would've chosen to use margin-left and margin-top instead of left and top in #mainbody, thus removing the need for the position: relative.

Now if only I could fix my own problem as easily.
Have you found a fix for the problem?

Aric
Reply
  #6  
Old February 26th, 2007, 08:45 AM
dtc dtc is offline
Newbie
 
Join Date: Feb 2007
Posts: 1
Default

Dustie,

I'm had the same problem some years back. I can't remember what fixed it and it is now part of my standard library for AJAX with PHP generated by Perl - so it's a bit specific and hard to extract - however .......
before I over complicated things I found my working solution when I was guided by Simon Jessey's article and examples at http://jessey.net/simon/articles/007.html

Take a peep at his ie6hack.css

[HTML]html { overflow: hidden; }
body { height: 100%; width: 100%; overflow: scroll; }[/HTML]

I also had to indent my right hand panel in order to view the scroll bar
[HTML]#top_right { position: absolute; top: 0px; right: 12px; z-index: 2; }[/HTML]
and this was a good place to put that too so that it doen't effect proper browsers that comply with W3. There is only the one definition (right) in the real code - all included here for completeness. Don't forget to put ie6hack after all your styles.

I spent ages trying to avoid a hack - but in the end resigned myself to it. Another case of IE wasting everyones time I guess. I wonder how many hours are lost through using Microsoft - I guess it would make sickness seem insignificant if someone was to account for them!

Hope this helps

Aric - RU the ex-DiSoft Aric?

David T-C in unusually rainy Devon - UK
Reply
  #7  
Old February 26th, 2007, 01:40 PM
Expert
 
Join Date: Oct 2006
Location: NC
Posts: 1,723
Default

Quote:
Originally Posted by dtc
Aric - RU the ex-DiSoft Aric?
Nope never heard of him.
Reply
  #8  
Old February 26th, 2007, 02:57 PM
drhowarddrfine's Avatar
Expert
 
Join Date: Sep 2006
Posts: 5,276
Default

If you guys have links to these problem pages, or can post the complete code, we can fix the problem.
Reply
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search


Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.