> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Ned Collyer > Sent: Tuesday, 3 May 2005 1:57 PM > To: wsg@webstandardsgroup.org > Subject: [WSG] Re: Padding tables in IE > > Andreas, > > You have: > > #draft table{padding:0 15px 0 25px;} > > Ideally with > <div id="draft"> > <table> > </table> > </div> > > you want to either add padding to > #draft > > or margin to the > #draft table > > Padding puts space inside between the element and its content > > Margin sets amount of space outside an element. (in this case, you > want margin around the outside of the table)
Hi Ned, thanks for the help. The problem is that the background image is partially inside the table. So if I give table a margin it will move the background image as well. I meanwhile found a solution by taking the background images completely out of the table, but it's not the best way, I find. I would have preferred using thead and tbody to hold the images, without having to add unnecessary DIVs around my tables. > Also, i think it would be in your best interests to validate your > work. There are heaps of issues reported when I validate it. Yep, will do so! Cheers, Andreas. ****************************************************** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ******************************************************