emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Scott Randby <srandby@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Default html export css styles?
Date: Tue, 1 Sep 2015 13:15:57 -0400	[thread overview]
Message-ID: <55E5DD4D.8010004@gmail.com> (raw)
In-Reply-To: <CAFAhFSWxyBzCra4+UE3WpZMY-Lo34_r_po-XPZDWm4B3__W_7g@mail.gmail.com>

On 09/01/2015 11:52 AM, Lawrence Bottorff wrote:
> When I do an HTML export of my org buffer, it produces a default css
> section in the head:
>
> <style type="text/css">
>   <!--/*--><![CDATA[/*><!--*/
>    .title  { text-align: center;
>               margin-bottom: .2em; }
>    .subtitle { text-align: center;
>                font-size: medium;
>                font-weight: bold;
>                margin-top:0; }
> . . .
>
> The docs (http://orgmode.org/manual/CSS-support.html#CSS-support) seem
> to be saying this can be overridden by a style sheet I may want to add.
> Is this an accurate assumption. In other words, in my own stylesheet.css
> I can make the border and drop shadow around a code block result go away
> by overriding it. Correct?
>
> What is producing this default css styling and how can I change it directly?
>
> LB
You can prevent org from exporting the default stylesheet by putting the 
following in your initialization file:

(setq org-html-head-include-default-style nil)

Then you can include your own stylesheet by putting something like the 
following into your org file:

#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="style.css">

Scott Randby

  parent reply	other threads:[~2015-09-01 17:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-01 15:52 Default html export css styles? Lawrence Bottorff
2015-09-01 17:09 ` Eric S Fraga
2015-09-01 17:15 ` Scott Randby [this message]
2015-09-01 19:03   ` Lawrence Bottorff
2015-09-01 19:57     ` Thomas S. Dye

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55E5DD4D.8010004@gmail.com \
    --to=srandby@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).