From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: Re: Bug: Table alignment [8.2.10 (release_8.2.10 @ /usr/local/src/emacs/lisp/org/)] Date: Wed, 6 May 2015 09:26:59 -0400 Message-ID: References: <87k2wp11v4.fsf@gmail.com> <87egmuc6tv.fsf@gmx.us> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1134d0d0f92df7051569bf24 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36001) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpzLr-0001oj-2B for emacs-orgmode@gnu.org; Wed, 06 May 2015 09:27:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YpzLp-0004AQ-UO for emacs-orgmode@gnu.org; Wed, 06 May 2015 09:27:02 -0400 Received: from mail-la0-x22a.google.com ([2a00:1450:4010:c03::22a]:34737) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpzLp-0004A6-H5 for emacs-orgmode@gnu.org; Wed, 06 May 2015 09:27:01 -0400 Received: by laat2 with SMTP id t2so7345246laa.1 for ; Wed, 06 May 2015 06:27:00 -0700 (PDT) In-Reply-To: <87egmuc6tv.fsf@gmx.us> 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: Rasmus Cc: Org Mode --001a1134d0d0f92df7051569bf24 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On May 6, 2015 06:57, "Rasmus" wrote: > > Jay Belanger writes: > > > When I looked at the resulting html, it looked fine: > > Math Department > > But then I checked the css code, which is given by the value of > > `org-html-style-default' in ox-html.el: > > > > th.right { text-align: center; } > > th.left { text-align: center; } > > th.center { text-align: center; } > > td.right { text-align: right; } > > td.left { text-align: left; } > > td.center { text-align: center; } > > Indeed that looks weird. It seems to be a stylistic hack to have > *headers* always centered. I have no clue why. > > > (It's this way in emacs 24.5 and the latest development version of emacs.) > > Easy to change locally, but am I missing something, or should > > `org-html-style-default' have > > > > th.right { text-align: right; } > > th.left { text-align: left; } > > th.center { text-align: center; } > > td.right { text-align: right; } > > td.left { text-align: left; } > > td.center { text-align: center; } > > I guess it should, but I don't know the rational for the always-centering > of headers. . . If we imposed that change headlines of tables with no > instructions would no longer be centered as they default to the "left" > class. This could be an issue if this is a good default style... > Not use if this belongs in the same thread, but another potential issue with the" left" and "right" classes is a namespace clash with external css frameworks which use those classes to assign float values. I export to WordPress using a zurb foundation based css framework, and my tables were all messed up until I figured that out. Matt > =E2=80=94Rasmus > > -- > With monopolies the cake is a lie! > > --001a1134d0d0f92df7051569bf24 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On May 6, 2015 06:57, "Rasmus" <rasmus@gmx.us> wrote:
>
> Jay Belanger <jay.p.bel= anger@gmail.com> writes:
>
> > When I looked at the resulting html, it looked fine:
> >=C2=A0 =C2=A0 =C2=A0<th scope=3D"col" class=3D"l= eft">Math Department</th>
> > But then I checked the css code, which is given by the value of > > `org-html-style-default' in ox-html.el:
> >
> >=C2=A0 =C2=A0th.right=C2=A0 { text-align: center;=C2=A0 }
> >=C2=A0 =C2=A0th.left=C2=A0 =C2=A0{ text-align: center;=C2=A0 =C2= =A0}
> >=C2=A0 =C2=A0th.center { text-align: center; }
> >=C2=A0 =C2=A0td.right=C2=A0 { text-align: right;=C2=A0 }
> >=C2=A0 =C2=A0td.left=C2=A0 =C2=A0{ text-align: left;=C2=A0 =C2=A0}=
> >=C2=A0 =C2=A0td.center { text-align: center; }
>
> Indeed that looks weird.=C2=A0 It seems to be a stylistic hack to have=
> *headers* always centered.=C2=A0 I have no clue why.
>
> > (It's this way in emacs 24.5 and the latest development versi= on of emacs.)
> > Easy to change locally, but am I missing something, or should
> > `org-html-style-default' have
> >
> >=C2=A0 =C2=A0th.right=C2=A0 { text-align: right;=C2=A0 }
> >=C2=A0 =C2=A0th.left=C2=A0 =C2=A0{ text-align: left;=C2=A0 =C2=A0}=
> >=C2=A0 =C2=A0th.center { text-align: center; }
> >=C2=A0 =C2=A0td.right=C2=A0 { text-align: right;=C2=A0 }
> >=C2=A0 =C2=A0td.left=C2=A0 =C2=A0{ text-align: left;=C2=A0 =C2=A0}=
> >=C2=A0 =C2=A0td.center { text-align: center; }
>
> I guess it should, but I don't know the rational for the always-ce= ntering
> of headers. . .=C2=A0 If we imposed that change headlines of tables wi= th no
> instructions would no longer be centered as they default to the "= left"
> class.=C2=A0 This could be an issue if this is a good default style...=
>

Not use if this belongs in the same thread,=C2=A0 but anothe= r potential issue with the" left" and "right" classes i= s a namespace clash with external css frameworks which use those classes to= assign float values.=C2=A0 I export to WordPress using a zurb foundation b= ased css framework,=C2=A0 and my tables were all messed up until I figured = that out.

Matt
> =E2=80=94Rasmus
>
> --
> With monopolies the cake is a lie!
>
>

--001a1134d0d0f92df7051569bf24--