emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Question about HTML
@ 2006-04-27 10:13 Carsten Dominik
  2006-04-27 10:31 ` Nic
  0 siblings, 1 reply; 4+ messages in thread
From: Carsten Dominik @ 2006-04-27 10:13 UTC (permalink / raw)
  To: emacs-orgmode

Just by chance someone here may have an answer to this.  I am unhappy 
about the way tags look in HTML output.  I could either remove them, or 
format them in a better way.  One way I have been thinking off is too 
keep them in, but push the tags all the way to the right boundary of 
the web browsers window.  In LaTeX you would do something like

\section{Some Title line \hfill :THE:TAGS:}

to get

1. Some Title line                             :THE:TAGS:

Is there something in HTML that could be used to make this happen, 
similar to LaTeX's hfill?

Thanks.

- Carsten

--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Question about HTML
  2006-04-27 10:13 Question about HTML Carsten Dominik
@ 2006-04-27 10:31 ` Nic
  2006-04-27 10:38   ` Carsten Dominik
  0 siblings, 1 reply; 4+ messages in thread
From: Nic @ 2006-04-27 10:31 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

Carsten Dominik <carsten.dominik@gmail.com> writes:

> Just by chance someone here may have an answer to this.  I am unhappy 
> about the way tags look in HTML output.  I could either remove them, or 
> format them in a better way.  One way I have been thinking off is too 
> keep them in, but push the tags all the way to the right boundary of 
> the web browsers window.  In LaTeX you would do something like
>
> \section{Some Title line \hfill :THE:TAGS:}
>
> to get
>
> 1. Some Title line                             :THE:TAGS:
>
> Is there something in HTML that could be used to make this happen, 
> similar to LaTeX's hfill?

You'd need to float the tags to the right; eg:

<html>
    <head>
        <style>
            #d {
            width: 100%;
            margin-left: 1em;
            margin-right: 1em;
            }
            #t {
            float: right;
            }
        </style>
    </head>
<body>
    <div id="t">the tags</div>
    <div id="d">some title line</div>
</body>
</html>


Nic Ferrier

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Question about HTML
  2006-04-27 10:31 ` Nic
@ 2006-04-27 10:38   ` Carsten Dominik
  2006-04-27 10:51     ` Nic
  0 siblings, 1 reply; 4+ messages in thread
From: Carsten Dominik @ 2006-04-27 10:38 UTC (permalink / raw)
  To: Nic; +Cc: emacs-orgmode

Cool, thanks.

- Carsten

On Apr 27, 2006, at 12:31, Nic wrote:

> Carsten Dominik <carsten.dominik@gmail.com> writes:
>
>> Just by chance someone here may have an answer to this.  I am unhappy
>> about the way tags look in HTML output.  I could either remove them, 
>> or
>> format them in a better way.  One way I have been thinking off is too
>> keep them in, but push the tags all the way to the right boundary of
>> the web browsers window.  In LaTeX you would do something like
>>
>> \section{Some Title line \hfill :THE:TAGS:}
>>
>> to get
>>
>> 1. Some Title line                             :THE:TAGS:
>>
>> Is there something in HTML that could be used to make this happen,
>> similar to LaTeX's hfill?
>
> You'd need to float the tags to the right; eg:
>
> <html>
>     <head>
>         <style>
>             #d {
>             width: 100%;
>             margin-left: 1em;
>             margin-right: 1em;
>             }
>             #t {
>             float: right;
>             }
>         </style>
>     </head>
> <body>
>     <div id="t">the tags</div>
>     <div id="d">some title line</div>
> </body>
> </html>
>
>
> Nic Ferrier
>
>

--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Question about HTML
  2006-04-27 10:38   ` Carsten Dominik
@ 2006-04-27 10:51     ` Nic
  0 siblings, 0 replies; 4+ messages in thread
From: Nic @ 2006-04-27 10:51 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

Carsten Dominik <carsten.dominik@gmail.com> writes:

> Cool, thanks.

The best thing to do would be to markup the different bits
semantically; eg:

  <div class="tags"><span class="tag">sometag</span>,<span class="tag">othertag</span></div>
  <div class="titleline">Some Title Line</div>

or:

 <ul>
   <li>
     <div class="tags"><span class="tag">sometag</span>,<span class="tag">othertag</span></div>
     <div class="titleline">Some Title Line</div>
   </li>
 </ul>

Because then CSS can be used to do it if wanted.


Again, I reiterate that microformat output would make all these
encoding problems go away because we could post-process good semantic
markup with xslt (os sxslt or whatever).


Nic

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-04-27 10:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-27 10:13 Question about HTML Carsten Dominik
2006-04-27 10:31 ` Nic
2006-04-27 10:38   ` Carsten Dominik
2006-04-27 10:51     ` Nic

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).