Firefox image scaling in tables

R

Ryan

X-No-Archive: Yes

http://rh.freeshell.org/test.html

When I load this page in IE, Opera, or Safari, I get the result I
expected - all 9 smileys appear on the page, scaled up (or down) to
fit 100% of the current window size. You can see all 3 rows. If you
resize your window, it scales.

But, in Firefox, I only see the first two rows, and need to scroll
down to see the last row.

Is there a way I can make Firefox behave like the other browsers?
 
J

Jukka K. Korpela

Scripsit Ryan:
X-No-Archive: Yes

So you don't want people to see your original question in archives, only
the answers, which may or may not repeat essential information about the
problem.

Thanks for the clue. I almost started wasting my time on your problem.
 
R

Ryan

So you don't want people to see your original question in archives, only
the answers, which may or may not repeat essential information about the
problem.

OK, here it is again, to be archived for all time, long after the URL
gives a 404.

Your help would be appreciated.

~

http://rh.freeshell.org/test.html

When I load this page in IE, Opera, or Safari, I get the result I
expected - all 9 smileys appear on the page, scaled up (or down) to
fit 100% of the current window size. You can see all 3 rows. If you
resize your window, it scales.

But, in Firefox, I only see the first two rows, and need to scroll
down to see the last row.

Is there a way I can make Firefox behave like the other browsers?
 
R

Ryan

So you don't want people to see your original question in archives, only
the answers, which may or may not repeat essential information about the
problem.

OK, here it is again, to be archived for all time, long after the URL
gives a 404.

Your help would be appreciated.

~

http://rh.freeshell.org/test.html

When I load this page in IE, Opera, or Safari, I get the result I
expected - all 9 smileys appear on the page, scaled up (or down) to
fit 100% of the current window size. You can see all 3 rows. If you
resize your window, it scales.

But, in Firefox, I only see the first two rows, and need to scroll
down to see the last row.

Is there a way I can make Firefox behave like the other browsers?
 
B

Ben C

X-No-Archive: Yes

http://rh.freeshell.org/test.html

When I load this page in IE, Opera, or Safari, I get the result I
expected - all 9 smileys appear on the page, scaled up (or down) to
fit 100% of the current window size. You can see all 3 rows. If you
resize your window, it scales.

But, in Firefox, I only see the first two rows, and need to scroll
down to see the last row.

Is there a way I can make Firefox behave like the other browsers?

You're better not to use a table. Firefox is allowing the percentage
width on the images, but not the percentage height, and preserving
their aspect ratio.

This is correct behaviour-- percentage heights of auto height containers
are supposed to be ignored. The table-cells have auto heights.

You could do it like this instead:

<style type="text/css">
html, body
{
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
img
{
width: 33%;
height: 33%;
float: left;
}
</style>

<body>
<img src="1.png">
<img src="1.png">
<img src="1.png">
<img src="1.png">
<img src="1.png">
<img src="1.png">
<img src="1.png">
<img src="1.png">
<img src="1.png">
</body>
 
J

Jonathan N. Little

Ben said:
You're better not to use a table. Firefox is allowing the percentage
width on the images, but not the percentage height, and preserving
their aspect ratio.

This is correct behaviour-- percentage heights of auto height containers
are supposed to be ignored. The table-cells have auto heights.


Also OP's page triggered quirks mode being pseudo-xhtml so all bets on
rendering consistency were off!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top