From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Hannon Subject: Re: how to specify table width in HTML export Date: Tue, 20 Mar 2012 00:16:38 -0700 (PDT) Message-ID: <1332227798.16454.YahooMailNeo@web161905.mail.bf1.yahoo.com> References: <24029.1332226407@alphaville> Reply-To: Michael Hannon Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:44179) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S9tJF-0003KW-G4 for emacs-orgmode@gnu.org; Tue, 20 Mar 2012 03:16:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S9tJA-0004qM-Dc for emacs-orgmode@gnu.org; Tue, 20 Mar 2012 03:16:45 -0400 Received: from nm30.bullet.mail.bf1.yahoo.com ([98.139.212.189]:24615) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1S9tJA-0004q2-5I for emacs-orgmode@gnu.org; Tue, 20 Mar 2012 03:16:40 -0400 In-Reply-To: <24029.1332226407@alphaville> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "nicholas.dokos@hp.com" , "Stephen J. Barr" Cc: "emacs-orgmode@gnu.org" > From: Nick Dokos =0A>=0A> Stephen J. Barr wrote:=0A>=0A>> Hello,=0A>>=0A>> This seems like a simple = question but I can't seem to find the answer?=0A>> How do I specify the tab= le width for an org-table that I will export=0A>> to HTML?=0A>>=0A>=0A> Not= sure about the real HTMl syntax, or whether this is the best=0A> solution = (I'd imagine CSS would be better *if* it can be done with CSS)=0A> but the = following:=0A>=0A> #+ATTR_HTML: width=3D"100"=0A> | col1 | col2 |=0A> |----= --+------|=0A> |=A0=A0=A0 1 |=A0=A0=A0 3 |=0A> |=A0=A0=A0=A0=A0 |=A0=A0=A0= =A0=A0 |=0A>=0A> gets translated into an HTML table with an opening tag lik= e this:=0A>=0A> cellpadding=3D= "6" rules=3D"groups" frame=3D"hsides"=0A> width=3D"100">=0A>=0A> Does that = do the trick?=0A=0AIndeed, I think CSS would be a better approach.=A0 And o= f course I don't know=0Awhat this particular application is, but it's usual= ly better to specify the=0Awidth of objects as a percentage of the overall = width.=0A=0AThis is discussed, for instance, at:=0A=0A=A0=A0=A0 http://www.= w3schools.com/css/css_table.asp=0A=0AHere's a line from one of my old .org = files that shows the syntax:=0A=0A=A0=A0=A0 #+STYLE:=A0=A0=A0 =0A=0AIt's also possibl= e to embed the styling information directly in the Org-mode=0Afile, but I f= ind that to be less convenient, as you then have to re-export to=0Amake a c= hange to the style.=0A=0ACaveat: I haven't done any HTML exporting to speak= of lately, certainly none=0Athat has involved CSS, so it may be that the s= yntax has changed (i.e.,=0Acompared to the above STYLE directive).=0A=0A-- = Mike