WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Site Design > Graphics & Design Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-30-2008, 09:46 PM
morestar morestar is offline
WebProWorld Member
 

Join Date: Jun 2007
Posts: 69
morestar RepRank 0
Default Table Display in Firefox Problem

Hi everyone and thank you for your time.

I have a website that I've worked on, an obvious monster template but anyways, if you view this page: Toronto GTA General Contracing for Fences & Decks to Landscaping and Interlocking Ontario you can see that in firefox the table padding doesn't quite sit as nice as it does in Internet Explorer.

Can someone give me some direction on how I could make the padding of the table look exactly the same in firefox as it does in internet explorer?

Every help will do and thanks so much in advance...

Reply With Quote
  #2 (permalink)  
Old 01-31-2008, 09:43 AM
wige's Avatar
wige wige is offline
Moderator
WebProWorld Moderator
 

Join Date: Jun 2006
Location: United States
Posts: 1,629
wige RepRank 4wige RepRank 4wige RepRank 4
Default Re: Table Display in Firefox Problem

I believe cellpadding attribute in the table tag is deprecated in Firefox. I would suggest testing the page with each table cell having a class which has an associated padding set in the stylesheet.
__________________
The best way to learn anything, is to question everything.
Interestingly Average Security Blog
Reply With Quote
  #3 (permalink)  
Old 01-31-2008, 10:14 AM
morestar morestar is offline
WebProWorld Member
 

Join Date: Jun 2007
Posts: 69
morestar RepRank 0
Default Re: Table Display in Firefox Problem

ofcourse but doing so would change the look of the page in IE - i wouldnt want that to happen...
Reply With Quote
  #4 (permalink)  
Old 01-31-2008, 10:43 AM
Dubbya's Avatar
Dubbya Dubbya is offline
WebProWorld 1,000+ Club
 

Join Date: Nov 2006
Location: Steinbach, Manitoba, Canada
Posts: 1,098
Dubbya RepRank 3Dubbya RepRank 3
Default Re: Table Display in Firefox Problem

As usual, Wige is correct. Here's what he's trying to say:

You can apply a CSS style specifically to the image table by assigning it an id. There's no need to specify the cellpadding in the table tag and the CSS style will work the same in any browser.

For example:

Code:
<style>
  table#imagetable td{ padding: 10px; }
</style>

<table id="imagetable" border="1">
  <tr>
    <td>put an image in here</td>
  </tr>
</table>
.02
__________________
Printer ink, inkjet & toner cartridges in Canada
"Price-wise printing supplies"
inkjetOasis.ca

Last edited by Dubbya : 01-31-2008 at 10:45 AM.
Reply With Quote
  #5 (permalink)  
Old 01-31-2008, 10:46 AM
morestar morestar is offline
WebProWorld Member
 

Join Date: Jun 2007
Posts: 69
morestar RepRank 0
Default Re: Table Display in Firefox Problem

Thanks Dub, thanks, Wige, i KNOW i could have figured this out myself but sometimes I get so discouraged with FF, I just don't get why we have to have so many browsers...and why they don't all work the same...

well thanks guys, i'll apply this soon...
Reply With Quote
  #6 (permalink)  
Old 01-31-2008, 05:00 PM
RegDCP's Avatar
RegDCP RegDCP is offline
WebProWorld Pro
 

Join Date: Oct 2005
Location: Courtenay BC
Posts: 223
RegDCP RepRank 0
Default Re: Table Display in Firefox Problem

I have long since given up adding table or cell padding so that cross browser compatibility is improved.

If I do not add the entries to the CSS I use paragraph formatting to give my desired padding.

Reg
__________________
http://DotCom-Productions.com Website Management
http://0Grief.com Budget PHP/MySQL hosting
Reply With Quote
  #7 (permalink)  
Old 02-01-2008, 10:38 AM
Sales-Training Sales-Training is offline
WebProWorld New Member
 

Join Date: Oct 2005
Posts: 1
Sales-Training RepRank 0
Default Re: Table Display in Firefox Problem

And of course make sure you specify line-height in the css.
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum
Tags: display, firefox, problem, tables



Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Image Display in Firefox - CSS wige Graphics & Design Discussion Forum 14 02-28-2007 10:54 AM
Firefox bug with content display Orion Graphics & Design Discussion Forum 25 06-09-2006 01:43 AM
Css display problem in Firefox Spectur Graphics & Design Discussion Forum 3 11-22-2005 10:13 AM
Help needed with Firefox display problem Gary Allman Graphics & Design Discussion Forum 3 03-11-2005 12:11 PM
Table alignment problem shaggy579 Web Programming Discussion Forum 4 06-01-2004 06:27 PM


Search Engine Friendly URLs by vBSEO 3.0.0