overflow:auto in IE

D

dorayme

Im using xhtml 1.0 strict and both tml and css validates, but no
matter what i do, i can't get overflow:auto to work in IE and i would
really like to get rit of that scroll bar when it isn't needed.

html:
http://www.g33kz-inn.org/test/index.htm

css:
http://www.g33kz-inn.org/test/includes/css/style.css


Thanks

What is this all about:

head {overflow: auto;}

?

Look at your html (or xhtml if you like), what is the explanation
of the divs and <br>. It does not seem to make a lot of sense?
Validity is one thing. Sense is another. Make the page a little
more realistic and let's see.
 
Z

zacariaz

What is this all about:

head {overflow: auto;}

?

Look at your html (or xhtml if you like), what is the explanation
of the divs and <br>. It does not seem to make a lot of sense?
Validity is one thing. Sense is another. Make the page a little
more realistic and let's see.

What do you want me to do? put some content on the site? That has
absolutely nothing to do with the problem.
I have a working site and whether or not it makes sence doesnt matter,
only the problem and the solution.
 
D

dorayme

What do you want me to do? put some content on the site? That has
absolutely nothing to do with the problem.
I have a working site and whether or not it makes sence doesnt matter,
only the problem and the solution.

You have not explained what your head {overflow: auto;} is doing.
I was puzzled by this? Anyway, I see no problem with scrollbars
when this is removed in IE 6 (I cannot now test in IE7 I am
afraid).

I removed various height: auto s too, these are defaults.

I worry about your code when you are putting px font sizes and px
heights for footers that can be too small for a user upped font
and other things. It is not always easy to know what is causing
problems until the simple things are all fixed right. You are
more confident than me. I guess you are not in a mood to hear
about other things... like you need some sort of reason to use
xhtml rather than html, have you got one? It is confusing to call
classes and ids after normal elements, it is bad practice to use
px for fonts, it always helps to make a problem a bit realistic
if you are not sure what is causing the problem...
 
Z

zacariaz

You have not explained what your head {overflow: auto;} is doing.
I was puzzled by this? Anyway, I see no problem with scrollbars
when this is removed in IE 6 (I cannot now test in IE7 I am
afraid).

I removed various height: auto s too, these are defaults.

I worry about your code when you are putting px font sizes and px
heights for footers that can be too small for a user upped font
and other things. It is not always easy to know what is causing
problems until the simple things are all fixed right. You are
more confident than me. I guess you are not in a mood to hear
about other things... like you need some sort of reason to use
xhtml rather than html, have you got one? It is confusing to call
classes and ids after normal elements, it is bad practice to use
px for fonts, it always helps to make a problem a bit realistic
if you are not sure what is causing the problem...
 
Z

zacariaz

You have not explained what your head {overflow: auto;} is doing.
I was puzzled by this? Anyway, I see no problem with scrollbars
when this is removed in IE 6 (I cannot now test in IE7 I am
afraid).

I you do not know what overflow auto does, you are definently not able
to help.
I IE 6, as i am using, you allways have a visible scrollbar in the
right of your browser, regardless of how much contents there is on the
site.
This can usually be fixed with overflow auto.
I removed various height: auto s too, these are defaults.
Yes, but they are nice to have in the development fase.
I worry about your code when you are putting px font sizes and px
heights for footers that can be too small for a user upped font
and other things. It is not always easy to know what is causing
problems until the simple things are all fixed right. You are
more confident than me. I guess you are not in a mood to hear
about other things... like you need some sort of reason to use
xhtml rather than html, have you got one? It is confusing to call
classes and ids after normal elements, it is bad practice to use
px for fonts, it always helps to make a problem a bit realistic
if you are not sure what is causing the problem...
I am allways ready to listen to good advice, but your "advice" dont
help.
I need to make overflow:auto work.
Everything else is exactly as i want it for now.

btw, links has been updated.
 
D

dorayme

I you do not know what overflow auto does, you are definently not able
to help.

It was more a question about the head bit rather than the
overflow. I have never seen this before, just asking you?

Anyway, I took another look at my WinIE and yes, there is a
vertical scrollbar field ready to be activated if need be.

Why don't you try html {overflow: auto;} rather than head...?
 
B

BootNic

[snip]
It was more a question about the head bit rather than the
overflow. I have never seen this before, just asking you?
[snip]

Think head swelling, without an auto overflow the eyes may pop out.
 
Z

zacariaz

It was more a question about the head bit rather than the
overflow. I have never seen this before, just asking you?

Anyway, I took another look at my WinIE and yes, there is a
vertical scrollbar field ready to be activated if need be.

Why don't you try html {overflow: auto;} rather than head...?

Thanks, that worked.

I dont know what its all about, sometimes it work in body, sometimes
in head, and now apperently in html.

Well problem solved
 
D

dorayme

Thanks, that worked.

I dont know what its all about, sometimes it work in body, sometimes
in head, and now apperently in html.

Well problem solved

I should have picked this up earlier. Truth is, I would never
dream of worrying about scroll bars and most things to do with
them goes in one ear and out the other and I was thrown by your
styling the head element, never seen this?

Plus I was quite distracted this avo, I dropped my toy helicopter
controller. I opened it up and re-soldered bits that had broken,
I have lost the nice led lights and two of the three channels,
but I can still fly it on one channel now that I have made what
repairs I could. So, not bad really, I can fly the helicopter and
you can have no scroll bars.
 
Z

zacariaz

C'mon, its just one of those things that annoys me. Admitet, im a
perfectionist and a minimalist, if it has not purpose it dont want it
there!

Anyway, you are saying some things about the design, i dont quite
understand what you mean.
Though i have just started designing it, i would like some advise.
 
J

Jonathan N. Little

Thanks, that worked.

I dont know what its all about, sometimes it work in body, sometimes
in head, and now apperently in html.

Its should never work in the head, partly what dorayme was getting at,
the HEAD is not part of the displayed presentational part of a webpage.
Essentially always:

head { display: none; }

so overflow on an element *not* displayed is meaningless.
 
D

dorayme

C'mon, its just one of those things that annoys me. Admitet, im a
perfectionist and a minimalist, if it has not purpose it dont want it
there!

Anyway, you are saying some things about the design, i dont quite
understand what you mean.
Though i have just started designing it, i would like some advise.

Good morning from Sydney, zacariaz. Perhaps you are using Google
to post messages? Please quote what it is you are replying to
first. This is a newsgroup and many of us have newsreaders, some
of us have online readers which do not store the contexts. It
helps to quote the relevant bits, things like who and what you
are replying to, the example url you are referring to, whatever
is particularly relevant.

There were some important issues, if I recall, about your coding
that, being a perfectionist, you would appreciate to look into. I
recall making some remarks. Which ones did you not quite
understand? I remember the font-size remark I think? You were
happy to specify font-size in pxs. This is not a good idea
because users of Internet Explorer cannot then easily change the
font size to suit their eyes. It also not a good idea because it
then lulls you into the bad practice of thinking you can control
a design this way, you think maybe the font is fixed and you can
fit it into yet another px dimensioned box (I recall your footer
being so dimensioned). But this is not so for many very good
browsers: the font size can be easily changed, the box will stay
fixed and the text will break out of the box. Not much good for
something like a footer in many designs!
 
J

John L.

C'mon, its just one of those things that annoys me. Admitet, im a
perfectionist and a minimalist, if it has not purpose it dont want it
there!

Anyway, you are saying some things about the design, i dont quite
understand what you mean.
Though i have just started designing it, i would like some advise.

If you're a minimalist, stop inserting pointless CSS in an attempt to
control whether or not the browser has a scrollbar. That's the browser's
business.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top