Re: [WSG] Padding tables in IE
Andreas wrote: I am having difficulties getting IE to give a table a padding-left. I dont think adding padding to the table itself is going to be reliable - as youve found out :) I'd say that what you want to do is add padding to the cell/s of the table. If you want to add padding to one column of the table (in your cae the left column), apply a style to a col tag [1] like this:style type=text/css .1st-column {padding-left:25px}/styletable border=1col class=1st-columncolcol trtdblah blah blah/tdtdblah blah blah/tdtdblah blah blah/td/tr/table [1] more info: http://www.w3schools.com/tags/tag_col.asp hope this is of some help, cheers, pete ottery On 5/2/05, Andreas Boehmer [Addictive Media] [EMAIL PROTECTED] wrote: I am having difficulties getting IE to give a table a padding-left. I can'tfigure out why this doesn't work, but perhaps somebody else can see my mistake:http://www.adictivemedia.com.au/clients/gta/home2.htmlYou can see on the Drafts Table that the text overlaps the left side of the background-image. This only seems to happen in IE - Firefox acknowledgesthe padding I gave the table and moves everything 25px inwards:#draft table{padding:0 15px 0 25px;}Any ideas on how this could be fixed? Thanks heaps!Andreas BoehmerUser Experience ConsultantPhone: (03) 9386 8907Mobile: (0411) 097 038http://www.addictiveMedia.com.auConsulting | Accessibility | Usability | Development **The discussion list forhttp://webstandardsgroup.org/See http://webstandardsgroup.org/mail/guidelines.cfmfor some hints on posting to the list getting help**
RE: [WSG] Padding tables in IE
Gee, that's a new one to me! Is col a HTML 4 tag? I've never come across it. Then again: haven't worked with tables in a while. Thanks, I'll give it a try! From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Ottery Sent: Monday, 2 May 2005 5:58 PM To: wsg@webstandardsgroup.org Subject: Re: [WSG] Padding tables in IE Andreas wrote: I am having difficulties getting IE to give a table a padding-left. I dont think adding padding to the table itself is going to be reliable - as youve found out :) I'd say that what you want to do is add padding to the cell/s of the table. If you want to add padding to one column of the table (in your cae the left column), apply a style to a col tag [1] like this: style type=text/css .1st-column {padding-left:25px} /style table border=1 col class=1st-column col col tr tdblah blah blah/td tdblah blah blah/td tdblah blah blah/td /tr /table ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] Padding tables in IE
Andreas Boehmer wrote: Gee, that's a new one to me! Is col a HTML 4 tag? I've never come acrossit. absolutely, a quick googling turns this article up - looks like quite a good rundown... http://www.yourhtmlsource.com/tables/tablesaccessibility.html or theres always the w3c spec if youre up for a really invigorating read ;-) http://www.w3.org/TR/REC-html40/struct/tables.html#h-11.2.4 Andreas Boehmer wrote: Then again: haven't worked with tables in a while. nothing wrong with a good ol table when its used appopriately! :)