HighDots Forums  

Bug with IE and TABLE padding?

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Bug with IE and TABLE padding? in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
 
Posts: n/a

Default Bug with IE and TABLE padding? - 01-07-2005 , 11:58 PM






Hi there,

the following works perfectly in Opera and Netscape, but not IE. Is this a
known problem? I have a table defined with the following definition:

table {
margin-top: 30px;
margin-left: auto;
margin-right: auto;
padding-left: 5px;
padding-right: 5px;
width: 700px;
}

Within this table, I have a number of rows and columns, but the padding
attributes in the TABLE definition seem to be ignored by the individual TD
tags in HTML.

In Netscape/Opera the layout is as follows (use non-proportional font):

-----------------------------------
Quote:
| | | |
|content |content | |
| | | |
-----------------------------------

The first and last "columns" represents the padding of the table and not
actual columns.

In IE, it appears as follows:

-----------------------------------
Quote:
| |
content |content |
| |
-----------------------------------

The width of the columns is slightly off in the IE version. I've tried
adding a margin to the TD of the first column in an IE-specific stylesheet,
but that didn't work...can anyone suggest anything?

Cheers in advance,
Kieran




Reply With Quote
  #2  
Old   
 
Posts: n/a

Default Re: Bug with IE and TABLE padding? - 01-08-2005 , 06:18 AM






Quote:
The width of the columns is slightly off in the IE version. I've tried
adding a margin to the TD of the first column in an IE-specific
stylesheet,
but that didn't work...can anyone suggest anything?
Emergency over, have found a workaround that seems to hold at the moment.
Cheers,
Kieran




Reply With Quote
Reply




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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.