Link to home
Start Free TrialLog in
Avatar of gplana
gplanaFlag for Spain

asked on

CSS problem (scrollable table)

Hi.

Please look at this site: http://www.gapla.cat/cita-AP/htmlsite

This is a static html page extracted from my project to show you the issue: you can see on the bottom right box a table. The content of the table (the table body, but not the header) should be scrollable. It is working fine on FireFox, but is it not working on Internet Explorer (tested on IE7 and IE9).
Avatar of Gary
Gary
Flag of Ireland image

You have no doctype so the page is going into quirks mode, add this to the beginning of your page and it should then work

<!DOCTYPE html>
Avatar of gplana

ASKER

Thank you for your answer. This seems not to be the problem. I have added the doctype but the issue still stays.
Avatar of duncanb7
duncanb7

http://www.w3schools.com/browsers/browsers_stats.asp

If you look at this browser stat on the link, you can see
IE usage is dropping into 1x %  and IE has a lot of
techincal issue,

So I suggest why ask your users switch to Google Chrome instead of
keeping wasting time on IE that I did before and give it up in last two years.
Chrome browser is much faster and stable than Firefox and specially for IE

And I ran you site on my IE that is working for scroll
Do an hard refresh and you will see it is now working.
@ duncanb7
That's funny lol
IE usage is around 30% (and increasing) - w3schools stats are not reliable since they measure their own usage which by the very nature of their site is developers who tend to use FF and Chrome.
Avatar of gplana

ASKER

On firefox is working but n IE9 is not working.
Avatar of gplana

ASKER

Sorry, I have to make this page work on IE and Firefox.
How do you think which browser is better and faster, GaryC123 ?

After I switch to Chrome, I never experience many technical  issue as IE does
And I also gave up FF since FF's latest version is much much slower
than its older version and Chrome.

Even the data just check and based on W3schools server but I think that
is liable if you look at how many users use w3schools daily by Alexa's rank
for global, I believe the stat sample users is larger enough for statistic

Please advise

Duncan
Move these styles so they are applied to the table and not the tbody

    display: block;
    height: 357px;
    overflow: auto;
Avatar of gplana

ASKER

Sorry guys, but I think we are chatting about another thing. The problem here is to make work that page on IE. Isn't this possible?
ASKER CERTIFIED SOLUTION
Avatar of Gary
Gary
Flag of Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gplana

ASKER

GaryC123 styles are now copied to table, but scroll still doesn't work and now also the header row is too high.
Just use the method above with the div, I cannot completely test properly in IE9 but the above will work.
Avatar of gplana

ASKER

Excellent. This seems to do the job.

Thank you very much.
I am sorry, I might quit here and just let Gary follow it
Thanks for your reply

have a nice day

Duncan