473,414 Members | 1,684 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

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
Nov 30 '06 #1
7 9050
The scroll bar works in IE 6 for me. Have you since fixed the problem?
Dec 1 '06 #2
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.
Dec 1 '06 #3
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.
Feb 20 '07 #4
AricC
1,892 Expert 1GB
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
Feb 22 '07 #5
dtc
1
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
Feb 26 '07 #6
AricC
1,892 Expert 1GB
Aric - RU the ex-DiSoft Aric?
Nope never heard of him.
Feb 26 '07 #7
drhowarddrfine
7,435 Expert 4TB
If you guys have links to these problem pages, or can post the complete code, we can fix the problem.
Feb 26 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

26
by: Dave Patton | last post by:
http://members.shaw.ca/davepatton/gps.html In another newsgroup(related to GPS), in regards to the above page, someone said:...
2
by: Stephen Weatherly | last post by:
Could anyone please help me with a problem I am having with my table widths??? If I have 2 images within a td tag, but using CSS relative positioning I position one over the top of the second (I...
2
by: Catherine Lynn Wood | last post by:
I need to know how to overlap DIV content within 'relative' associated rendering. I am building div layers in the middle of a page and when I set positioning to absolute in the CSS, it references...
14
by: Harlan Messinger | last post by:
What am I not understanding about the definition of { position: absolute; }? "The box's position (and possibly size) is specified with the 'left', 'right', 'top', and 'bottom' properties. These...
3
by: Markus Ernst | last post by:
Hello Reading the follwing document: http://www.w3.org/TR/WD-positioning-970131#In-flow it seems very clear that position:relative should be relative to the parent element. So in the following...
6
by: Lester L. | last post by:
Hello all, I've been trying for quite some time to eliminate scrollbars on my latest site; I'd be perfectly happy if only the horizontal one would go away, actually. FF and Opera have horiz....
2
by: Rob R. Ainscough | last post by:
I'm slowly (very slowly) working my way thru the bizarre and sadistic world of control positioning in MultiViews (ASP 2.0). I came across this to help me explain (or attempt to anyway) why my web...
7
by: Cruelemort | last post by:
All, I have a div in my page that has a set width of 1000px, height of 200px, inside this i declare two more div's, both relatively positioned and floated left, the first is placed to the top...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.