Abdus Sattar Bhuiyan
Abdus Sattar Bhuiyan

Reputation: 3074

overflow: auto; works fine in chrome but not in firefox

I have been searching the web for a solution for 3 hours without success. I want to set overflow: auto to tag as follows:

td {
 overflow:auto!important;  
}

It works fine in chrome but not in Firefox. I checked my entire css file by w3c css validator. There is no error too. Any idea please? I am sorry if it is very silly question but everyone have to learn this first to be expert.

Upvotes: 2

Views: 1102

Answers (2)

newTag
newTag

Reputation: 2169

Try wrapping it in a <div>. The overflow attribute is not defined for a <td> element.

See here

Try to put your overflow:auto to the wrapper like this,

pre, div {
    width:100%;
    overflow: auto !important;
}

See demo

Upvotes: 2

Smruti
Smruti

Reputation: 452

Try this

  td {
      height: 20px; // mention a height
      overflow:auto!important;  
  }

Upvotes: 1

Related Questions