emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sébastien Vauban" <zthjwsqqafhv-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: Export as HTML
Date: Mon, 30 Mar 2009 13:23:32 +0200	[thread overview]
Message-ID: <874oxbntjf.fsf@mundaneum.com> (raw)
In-Reply-To: <61ECBCBA-4963-4435-82BD-BAA37A03FC50-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> (Carsten Dominik's message of "Mon, 30 Mar 2009 11:53:03 +0200")

Hi Carsten,

Carsten Dominik wrote:
> On Mar 30, 2009, at 10:55 AM, Sébastien Vauban wrote:
>> Hello,
>>
>> Trying to use free CSS templates for some Web site, I have layout problems
>> with the current export to HTML, as a first `<div id="content">' is
>> hard-coded
>> into the resulting Web page.
>>
>> Could you remove that line, and its closing tag from `(insert
>> "\n</div>\n</body>\n</html>\n"))' (in function `org-export-as-html') so that
>> we have a completely naked BODY, that the user can fill at its own freedom
>> via
>> the preamble/postamble?
>
> Why and how is this <div> limiting what you can do?

I took a free CSS template at:

    http://www.free-css.com/free-css-templates/page2/minisite-pro.php

If I want to use it without modifying it, I have to follow such a construct
(taken from their live demo):

--8<---------------cut here---------------start------------->8---
<body>
<div id="container">
  <div id="head">

    <h1 id="logo"><a href="/" title="Free CSS">Free CSS</a></h1>
    <p id="quote">Free CSS Templates, CSS Layouts &amp; More!</p>
    <ul id="topnavi">
      <li><a href="http://www.free-css.com/" title="Free CSS">Home</a></li>
      <li><a href="/contact-us.php" title="Contact Free CSS">Contact Us</a></li>
      <li><a href="/advertise.php" title="Advertise With Free CSS">Advertise</a></li>

      <li><a href="/recommend-us.php" rel="popup console 500 520 noicon" title="Recommend Free CSS">Recommend Us</a></li>
      <li><a href="/submit.php" title="Submit to Free CSS">Submit</a></li>
      <li class="last"><a href="/search.php" title="Search Free CSS">Search</a></li>
    </ul>
  </div>
  <div id="superbanner">
    <script src="/assets/templates/free-templates/scripts/buysellads_sb.js" type="text/javascript"></script>

  </div>
  <div id="breadcrumb">
    <ul>
<li class="first">You Are Here</li>
<li>&#187;</li>
<li><a href="/" title="Free CSS">Free CSS</a></li>
<li>&#187;</li>
<li><a href="/free-css-templates.php" title="Free CSS Templates">Free CSS Templates</a></li>
<li>&#187;</li>
<li><a href="/free-css-templates/page2.php" title="CSS Website Templates Page 2">CSS Templates Page 2</a></li>

<li>&#187;</li>
<li class="current"><a href="/free-css-templates/page2/minisite-pro.php" title="Minisite Pro Template">Minisite Pro</a></li>
</ul>
  </div>
<div id="content">
--8<---------------cut here---------------end--------------->8---

Having <div id="content"> directly under the BODY tag messes up everything.


> It was recently introduce precisely to aid CSS formatting
> of the entire body.

For me, it seems easier to have a completely naked body, by default, and let
the user decide, follow or copy a guideline to implement the nice CSS he wants
to.

Currently, I had to modify the source code to get the same effect as the one I
want.


> Sebasian (Rose) and Richard, you helped making getting
> the outer div into place, would you care to comment?

Best regards,
  Seb

-- 
Sébastien Vauban


_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  parent reply	other threads:[~2009-03-30 11:23 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-30  8:55 Export as HTML Sébastien Vauban
2009-03-30  9:03 ` roc lee
2009-03-30  9:10   ` roc lee
     [not found]     ` <bdfccab30903300210h7a683ae4hc4e4a655ce7327c6-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-03-30  9:26       ` Sébastien Vauban
2009-03-30 12:28         ` Sebastian Rose
2009-03-30 12:46           ` Matthew Lundin
2009-03-30 13:11             ` Carsten Dominik
2009-03-30 14:45               ` Matthew Lundin
2009-03-30 17:45                 ` Carsten Dominik
     [not found]                   ` <1E2E8AB7-274B-4283-AC02-631D165C06E1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2009-03-30 19:07                     ` Sébastien Vauban
2009-03-30 19:55                   ` Sebastian Rose
2009-03-30 21:06                     ` Carsten Dominik
2009-03-30  9:53 ` Carsten Dominik
     [not found]   ` <61ECBCBA-4963-4435-82BD-BAA37A03FC50-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2009-03-30 11:23     ` Sébastien Vauban [this message]
2009-03-30 11:59       ` roc lee
2009-03-30 13:48       ` Sebastian Rose

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=874oxbntjf.fsf@mundaneum.com \
    --to=zthjwsqqafhv-genee64ty+gs+fvcfc7uqw@public.gmane.org \
    --cc=emacs-orgmode-mXXj517/zsQ@public.gmane.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).