• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 550
  • Last Modified:

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).
0
gplana
Asked:
gplana
  • 6
  • 6
  • 3
1 Solution
 
GaryCommented:
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>
0
 
gplanaAuthor Commented:
Thank you for your answer. This seems not to be the problem. I have added the doctype but the issue still stays.
0
 
duncanb7Commented:
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
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
GaryCommented:
Do an hard refresh and you will see it is now working.
0
 
GaryCommented:
@ 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.
0
 
gplanaAuthor Commented:
On firefox is working but n IE9 is not working.
0
 
gplanaAuthor Commented:
Sorry, I have to make this page work on IE and Firefox.
0
 
duncanb7Commented:
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
0
 
GaryCommented:
Move these styles so they are applied to the table and not the tbody

    display: block;
    height: 357px;
    overflow: auto;
0
 
gplanaAuthor Commented:
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?
0
 
GaryCommented:
If that doesn't work then you will need to wrap your table in a scrollable div e.g.

<div style="height: 357px; display: block; overflow-y: auto;overflow-x:hidden">
<table>
....
</table>
</div>
0
 
gplanaAuthor Commented:
GaryC123 styles are now copied to table, but scroll still doesn't work and now also the header row is too high.
0
 
GaryCommented:
Just use the method above with the div, I cannot completely test properly in IE9 but the above will work.
0
 
gplanaAuthor Commented:
Excellent. This seems to do the job.

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

have a nice day

Duncan
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 6
  • 6
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now