Firefox and IE padding issue.

Reply

Join Date: Nov 2004
Posts: 89
Reputation: MrScruff is an unknown quantity at this point 
Solved Threads: 0
MrScruff's Avatar
MrScruff MrScruff is offline Offline
Junior Poster in Training

Firefox and IE padding issue.

 
0
  #1
Feb 6th, 2006
If you take a look at my website in firefox:

and in internet explorer:

you will see the top menu in internet explorer is on the left.

The css code I have used is:

HTML and CSS Syntax (Toggle Plain Text)
  1. .overbodyline
  2. {
  3. background-image:url(/music/images/main.gif);
  4. background-repeat: repeat-y;
  5. {T_TH_COLOR1} solid;
  6. font-size : {T_FONTSIZE2}px;
  7. color : {T_BODY_TEXT};
  8. padding: 0px 0px 0px 40px;
  9. }

and the table code is as follows:

HTML and CSS Syntax (Toggle Plain Text)
  1. <table width="100%" cellspacing="0" border="0" class="overbodyline">
  2. <tr><td><table class="stand" width="700px">random gubbins
  3. </table>
  4. </td></tr>
  5. <table>

For some reason the rest of the padding is fine. I've attached the whole file if you need to check out anything else.
Last edited by tgreer; Feb 6th, 2006 at 11:55 am. Reason: Missing code tags again...
Attached Files
File Type: txt overall_header.txt (13.6 KB, 6 views)
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Firefox and IE padding issue.

 
0
  #2
Feb 6th, 2006
In general, CSS spacing issues can be resolved by specifying both the "padding" and "margin" properties of all the affected elements.

Tables have their own properties... try setting "cellpadding".
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 89
Reputation: MrScruff is an unknown quantity at this point 
Solved Threads: 0
MrScruff's Avatar
MrScruff MrScruff is offline Offline
Junior Poster in Training

Re: Firefox and IE padding issue.

 
0
  #3
Feb 6th, 2006
Ah taking of cellpadding - I've tried that and it works but I've found no way of specifying that it only pads the left hand side... any ideas if theres a way to define it?
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Firefox and IE padding issue.

 
0
  #4
Feb 6th, 2006
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 89
Reputation: MrScruff is an unknown quantity at this point 
Solved Threads: 0
MrScruff's Avatar
MrScruff MrScruff is offline Offline
Junior Poster in Training

Re: Firefox and IE padding issue.

 
0
  #5
Feb 6th, 2006
So theres no way of defining the cellpadding attribute to pad from the left. So back to square one. I wonder why this table is causing trouble when the rest are fine?
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Firefox and IE padding issue.

 
0
  #6
Feb 6th, 2006
CSS attributes "cascade", from least-specific to most-specific. You are also mixing inline attributes with CSS class definitions.

In any given TD for your table, you'll get a "combined" or "derived" style based on the inline attributes, the "overbodyline" class, and the "stand" class. Any attributes you've left undefined (such as "margin") will get whatever default the browser uses.

Is the data in your table really tabular? Are you actually presenting a "table" of data? If not, then consider using DIVs, SPANs, and CSS to control appearance and flow. It will be much simpler to troubleshoot these issues if you didn't mix tables and CSS.
Last edited by tgreer; Feb 6th, 2006 at 5:40 pm.
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 89
Reputation: MrScruff is an unknown quantity at this point 
Solved Threads: 0
MrScruff's Avatar
MrScruff MrScruff is offline Offline
Junior Poster in Training

Re: Firefox and IE padding issue.

 
0
  #7
Feb 6th, 2006
I restructured my tables and got it fixed... yay!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the HTML and CSS Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC