• Home
  • Random
  • Log in
  • Settings
Donate Now If this site has been useful to you, please give today.
  • About Wikisource
  • Disclaimers
Wikisource

Template:Float left/s

  • Template
  • Discussion
  • Language
  • Watch
  • Edit
< Template:Float left
Template documentation[view] [edit] [history] [purge]

This template uses block elements, e.g. <div> or <p>.
It should not be nested inside an inline element, e.g. <span>, or a template that produces such an element.

See H:DIVSPAN for details.

Usage

edit

This template, together with {{float left/e}}, can be used to float a block of text (and images) to the left, allowing remaining text on page to wrap around the block.

It can take two parameters:

  • the first sets the width of the block the text will be squeezed into (default is 200px)
  • the second sets the right margin for the block (default is 1em)

Example

edit

{{Float left/s|20em|2em}}
This text is floated left in a 20em-pixel-wide box with a 2em right margin.
{{Float left/e}}''{{Lorem ipsum}}''

yields:

This text is floated left in a 20em-pixel-wide box with a 2em right margin.

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.


See also

edit
  • {{Float right/s}} - for right alignment
  • {{float left}} - useful for small amounts of text


The above documentation is transcluded from Template:Float left/s/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikisource.org/w/index.php?title=Template:Float_left/s&oldid=11811958"
Last edited on 25 October 2021, at 02:05

Languages

    • ਪੰਜਾਬੀ
    Wikisource
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 25 October 2021, at 02:05.
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikisource
    • Disclaimers
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop