Solved

CSS problem (scrollable table)

Posted on 2013-11-02
16
482 Views
Last Modified: 2013-11-02
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
Comment
Question by:gplana
  • 6
  • 6
  • 3
16 Comments
 
LVL 58

Expert Comment

by:Gary
ID: 39618938
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
 
LVL 15

Author Comment

by:gplana
ID: 39618941
Thank you for your answer. This seems not to be the problem. I have added the doctype but the issue still stays.
0
 
LVL 13

Expert Comment

by:duncanb7
ID: 39618946
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
 
LVL 58

Expert Comment

by:Gary
ID: 39618948
Do an hard refresh and you will see it is now working.
0
 
LVL 58

Expert Comment

by:Gary
ID: 39618952
@ 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
 
LVL 15

Author Comment

by:gplana
ID: 39618953
On firefox is working but n IE9 is not working.
0
 
LVL 15

Author Comment

by:gplana
ID: 39618955
Sorry, I have to make this page work on IE and Firefox.
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 13

Expert Comment

by:duncanb7
ID: 39618956
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
 
LVL 58

Expert Comment

by:Gary
ID: 39618974
Move these styles so they are applied to the table and not the tbody

    display: block;
    height: 357px;
    overflow: auto;
0
 
LVL 15

Author Comment

by:gplana
ID: 39618977
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
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 39618984
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
 
LVL 15

Author Comment

by:gplana
ID: 39618985
GaryC123 styles are now copied to table, but scroll still doesn't work and now also the header row is too high.
0
 
LVL 58

Expert Comment

by:Gary
ID: 39618992
Just use the method above with the div, I cannot completely test properly in IE9 but the above will work.
0
 
LVL 15

Author Closing Comment

by:gplana
ID: 39618993
Excellent. This seems to do the job.

Thank you very much.
0
 
LVL 13

Expert Comment

by:duncanb7
ID: 39618994
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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
IFRAME in a ASPX file no longer working 3 27
Hyper V cluster 2 32
Syntax Error 2 47
Bootstrap on PLNKR 3 14
So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now