473,401 Members | 2,127 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

Overflow in Firefox?

Hello,

I would like a scroll bar to appear if the contents of a table exceeds the set height of that table and I understand that this can be done with overflow. I have set it and it works in Chrome but it does not appear to be working in FireFox. In FireFox it appears to be extending the cell's height. Obviously, I would like to maintain the cells height in my table and have a scroll bar appear if the contents exceed the height.

Here is the code I am using:
Expand|Select|Wrap|Line Numbers
  1. <table width="100%" height="75%" border="0">
  2. <tr>
  3. <td width="25%"><div style="padding : 4px; width : 100%; height : 100%; overflow : auto; ">
  4.  
If you know how I can get this to render correctly in Firefox I would be very appreciative! Thanks.
Oct 10 '10 #1

✓ answered by Death Slaught

That's because you're using percentages. The content is going to be 100% of the table it's contained in (which is 75% of whatever the table is contained in). Try setting the values to pixels.

- Death

5 2250
Death Slaught
1,137 1GB
Just change the overflow property to scroll.

Expand|Select|Wrap|Line Numbers
  1. overflow: scroll;
Thanks, Death
Oct 10 '10 #2
I tried changing it to overflow:scroll; but it does not appear to have any effect in firefox, the contents of the cell are still extending beyond the height of the cell that I set...any other suggestions?
Oct 10 '10 #3
Death Slaught
1,137 1GB
That's because you're using percentages. The content is going to be 100% of the table it's contained in (which is 75% of whatever the table is contained in). Try setting the values to pixels.

- Death
Oct 10 '10 #4
That seems to work!

Thanks.
Oct 10 '10 #5
Death Slaught
1,137 1GB
No problem~

Regards, Death
Oct 10 '10 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: paulroskilly | last post by:
Hello, Can anyone help with this, I have a div tag : <div style="overflow:scroll; overflow-x:hidden; height=315px"> In IE this renders the DIV fine, it is 315 pixels high and has a...
2
by: R0bert Neville | last post by:
I created a simple template with common tags. It serves as a quick reference guide for my web development efforts. The web page renders great in Firefox, yet becomes a mess in IE. The HTML and CSS...
1
by: Marek Mänd | last post by:
I have question regarding CSS overflow atribute. <body> <table style="height:100%" id="pagetable"> <td style="vertical-align:top;"> <div...
2
by: matthewmacchia | last post by:
I believe this is a Firefox bug but I was hoping someone found a workaround. I have implemented drag and drop functionality, but if I try to drag an element from a div that happens to have a div...
1
by: R0bert Nev1lle | last post by:
Here's my next IE challenge (or frustration). It deals with the overflow attribute. Overflow property was a challenge on my page since the page emulates position fixed for IE. The present...
1
by: Mickey | last post by:
Hi, I have a script which works in both IE but is sluggish in Firefox. The script is a simple text scroller. It works perfectly in IE however in Firefox, the text scroll slower and eventually...
6
by: alejandro | last post by:
I just noticed that in FireFox, onmouseover and onmouseout events do not work properly when a div's overflow is set to hidden/auto/scroll. If you click and hold inside the div with onmouseover/out...
2
by: esteuart | last post by:
I need to get the right combination for a div to clip any text inside and allow vertical alignment. I only have this problem in FireFox. I have 3 divs nested within each other. The outer div has...
4
by: sbettadpur | last post by:
hello, i have created one website using div i.e total layout is designed using div only. if i saw that pages in Internet Explorer vesion 6, its showing very fine, but if i open same pages in...
1
by: newbie009 | last post by:
How can I disable horizontal scroll in textbox for FireFox? Right now 1 textbox has vertical scroll and other textbox has horizontal scroll. It only looks like this on FireFox but it looks ugly....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.