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

Guenter Milde via Docutils-users <[email protected]>
Newsgroups gmane.text.docutils.user
Message-ID <[email protected]>
On 2017-11-22, Gökçe Aydos wrote:
> Is it possible to generate HTML output as follows?

><div style="width:40%">
> contents...
></div>

This can be done with raw HTML only.

OTOH, you could use the rST equivalent to a <div> and give it a class argument
that can be styled via a custom CSS stylesheet::

  .. container:: custom

     This paragraph might be rendered in a custom way.
     
becomes::

 <div class="custom docutils container">
 <p>This paragraph might be rendered in a custom way.</p>
 </div>
 
Günter    


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