Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-11-2012, 10:59 PM   PM User | #1
mrfixit
New to the CF scene

 
Join Date: Sep 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
mrfixit is an unknown quantity at this point
Cell height and width way too big in Firefox

I have a table of thumbnail images that link to a larger image when clicked upon. They are centered in the table cells vertically and horizontally and shrunken for the thumbnail versions. Firefox requires an extra line of code to do this "-moz-transform . . ."

The issue is that the cells in all other browsers (IE, Chrome, Safari) appear correctly and work perfectly. They are all 250px square. The pictures show up the correct size in Firefox, but the cells are 1000px square. What do I do?

HTML:
Code:
<table border="2" cellpadding="0" cellspacing="0" style="table-layout:fixed;">
<tr>
<td><a href="cabinetry/kitchens/hdkitchen1.jpg"><img style="zoom:0.2; border:3px solid black;" src="cabinetry/kitchens/hdkitchen1.jpg"/></a></td>
<td><a href="cabinetry/kitchens/hdkitchen2.jpg"><img style="zoom:0.2; border:3px solid black;" src="cabinetry/kitchens/hdkitchen2.jpg"/></a></td>
<td><a href="cabinetry/kitchens/hdkitchen3.jpg"><img style="zoom:0.2; border:3px solid black;" src="cabinetry/kitchens/hdkitchen3.jpg"/></a></td>
<td><a href="cabinetry/kitchens/hdkitchen4.jpg"><img style="zoom:0.2; border:3px solid black;" src="cabinetry/kitchens/hdkitchen4.jpg"/></a></td>
<td><a href="cabinetry/kitchens/hdkitchen5.jpg"><img style="zoom:0.2; border:3px solid black;" src="cabinetry/kitchens/hdkitchen5.jpg"/></a></td>
<tr>
CSS:
Code:
td {
	text-align: center;
	box-sizing: content box;
	width: 250px;
	height: 250px;
	margin-top: 0;
	margin-bottom: 0;
	}

td img {
	margin: 0 auto;
	border-width: 0px;
	-moz-transform: scale(0.2);
	
	}​
				 
form
    {
    margin: 0px;
    }			 

table
	{border-collapse:collapse;
	overflow:hidden;
	white-space: nowrap;
	}
Any suggestions?
mrfixit is offline   Reply With Quote
Old 09-12-2012, 01:30 AM   PM User | #2
AndrewGSW
Senior Coder

 
Join Date: Apr 2011
Location: London, England
Posts: 2,120
Thanks: 15
Thanked 354 Times in 353 Posts
AndrewGSW will become famous soon enough
There should be a hyphen in the following

Code:
box-sizing: content-box;
although this is probably not the cause of your issue (and should be the default value anyway).

Maybe it's the zoom that is the issue (a proprietary MS/IE property) but I'm not sure, soz.
__________________
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
Validate your HTML and CSS
AndrewGSW is offline   Reply With Quote
Reply

Bookmarks

Tags
css, firefox, html, tables

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:32 AM.


Advertisement
Log in to turn off these ads.