11 replies [Last post]
paolo
Offline
Regular
PR-Italia
Last seen: 16 years 48 weeks ago
PR-Italia
Joined: 2003-08-12
Posts: 11
Points: 0

Well. i'm working on a page using absolutely and relatively positioned divs. By solving some problems in mac IE visualization (making the middledx div absolute rather than relative, i got involved in a strange problem: using IE, the vertical scrollbar get stuck (with Mozilla, everything works)... Can anybody tell me why, and how to solve this problem (keeping the webpage AAA approved?).

The URL is: http://www.unipr.it/paolo/prova.htm

Thanks-a-lot!
>paolo

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 1 week 4 days ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5343
Points: 2964

site check: IE Stuck Scrollbar

Hi Paolo,
Have you tried giving the middledx div a height value.

Absolutely positioned elements are taken out of the normal flow of the document so without a height or another element not positioned absolutely with the same or more height some browsers may not realize there is content at the bottom of the page.

Hope that helps.

insin
insin's picture
Offline
Enthusiast
Belfast, NI
Last seen: 17 years 9 weeks ago
Belfast, NI
Joined: 2003-05-07
Posts: 57
Points: 0

site check: IE Stuck Scrollbar

It's also worth trying your page in IE without the XML prolog:

<?xml version="1.0" encoding="iso-8859-1"?>

...as including this line makes IE (at least, IE6 in windows) use a broken box model.

A Pedant Writes...
Into the mountain,
I will fall.

paolo
Offline
Regular
PR-Italia
Last seen: 16 years 48 weeks ago
PR-Italia
Joined: 2003-08-12
Posts: 11
Points: 0

site check: IE Stuck Scrollbar

I think Tony got the problem, both the suggested methods don't seem to work properly... Well, and I never liked the "height" attribute (don't know the reason). I think I can bypass the problem by putting a javascript browser sniffer at the top of the page, that changes the css according to the platform and browser is being used, but I think is a sort of hack, isnt'it? Javascript is dead weight, Pure Css is such a De-Light!

Keep on helping!
>paolo

paolo
Offline
Regular
PR-Italia
Last seen: 16 years 48 weeks ago
PR-Italia
Joined: 2003-08-12
Posts: 11
Points: 0

site check: IE Stuck Scrollbar

Uh, i tried the style switcher at this URL:

http://www.unipr.it/paolo/prova2.htm

Can anybody with a Mac IE tell me if it's properly visualized?

Once More Thanks

>paolo

casey
casey's picture
Offline
Regular
Wisconsin, USA
Last seen: 6 years 10 weeks ago
Wisconsin, USA
Timezone: GMT-5
Joined: 2003-08-01
Posts: 17
Points: 0

site check: IE Stuck Scrollbar

paolo wrote:
Can anybody with a Mac IE tell me if it's properly visualized?
Paulo,

There's a gap between your left navigation bar and the content in IE 5.1.6 for Mac OS 9.

It looks good in Netscape 7.

Check out the picture in the attachment.

Good luck!

paolo
Offline
Regular
PR-Italia
Last seen: 16 years 48 weeks ago
PR-Italia
Joined: 2003-08-12
Posts: 11
Points: 0

site check: IE Stuck Scrollbar

Wa! That was the reason I forced the right div to an absolute position, that caused the vert scrollbar disappear in Win IE... Probably the "Copy&Paste" style switcher still doesn't accomplish his duty (At the top of the source, if you wanna give a look). Thanks Casey, I'll be back soon with a php style switcher, or something like that.

>paolo[/i]

paolo
Offline
Regular
PR-Italia
Last seen: 16 years 48 weeks ago
PR-Italia
Joined: 2003-08-12
Posts: 11
Points: 0

site check: IE Stuck Scrollbar

OK, the browser detector and style switcher should be on. I copied and pasted it from the source of

http://www.donkeyontheedge.com/ala.html

(very kind of you, Mr Falby...)

Can anybody (Casey?) check the page

http://www.unipr.it/paolo/prova2.htm

with a Mac IE?

Thanks!

casey
casey's picture
Offline
Regular
Wisconsin, USA
Last seen: 6 years 10 weeks ago
Wisconsin, USA
Timezone: GMT-5
Joined: 2003-08-01
Posts: 17
Points: 0

site check: IE Stuck Scrollbar

It looks good now.

paolo
Offline
Regular
PR-Italia
Last seen: 16 years 48 weeks ago
PR-Italia
Joined: 2003-08-12
Posts: 11
Points: 0

site check: IE Stuck Scrollbar

I really thank you!

ingfrank77
Offline
newbie
Costa Rica
Last seen: 15 years 48 weeks ago
Costa Rica
Joined: 2004-08-06
Posts: 1
Points: 0

site check: IE Stuck Scrollbar

a question, could you tell me if with javascript I can to take off the scrollbar in a browser window.
The problem is, with CSS I change all properties of a scrollbar to white color, and sure, the scrollbar disappear, but I want to know if you know some trick in javascript for this thing, the idea is that the most common browser supports the change, with css only the most modern browser supports the scrollbar property .

Thanks

Franklin

thepineapplehead
thepineapplehead's picture
Offline
Guru
Last seen: 16 weeks 19 hours ago
Joined: 2004-06-30
Posts: 9668
Points: 801

site check: IE Stuck Scrollbar

Use <body scroll="no" style="overflow: hidden;">

Verschwindende wrote:
  • CSS doesn't make pies