Re: HTML <div style="width:40%">

David Goodger <[email protected]>
Newsgroups gmane.text.docutils.user
Message-ID <CABiJP=K+y_zGwpGxLydX1QPm28CRs20Mr9P09LsHfKFWR5dCDA@mail.gmail.com>
Yes, it's possible. But not recommended. Directly, the only way is
with the "raw" directive:
http://docutils.sourceforge.net/docs/ref/rst/directives.html#raw-data-pass-through
But that is a last resort only. I do NOT recommend it.

What you're talking about is styling your HTML. You should use
stylesheets for that:
http://docutils.sourceforge.net/docs/howto/html-stylesheets.html

Use the "class" directive (or "class" option on an existing directive)
to assign custom classes if necessary:
http://docutils.sourceforge.net/docs/ref/rst/directives.html#class

What, in your document, are you trying to style?

David Goodger
<http://python.net/~goodger>


On Wed, Nov 22, 2017 at 8:55 AM, Gökçe Aydos
<[email protected]> wrote:
> Is it possible to generate HTML output as follows?
>
> <div style="width:40%">
> contents...
> </div>
>
> Regards, Gökçe
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Docutils-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/docutils-users
>
> Please use "Reply All" to reply to the list.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Docutils-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply to the list.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.