<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed><type>rich</type><version>1.0</version><provider_name>phorkie</provider_name><provider_url>https://p.cweiske.de/</provider_url><title>Drupal backend: Show form fields side by side</title><author_name>Christian Weiske</author_name><cache_age>86400</cache_age><width>900</width><height>900</height><html>&lt;!-- embedding all files of https://p.cweiske.de/797 --&gt;
&lt;link rel="stylesheet" href="https://p.cweiske.de/css/embed.css"/&gt;
&lt;div class="phork" id="797"&gt;
    &lt;div class="phork-file"&gt;
 &lt;div class="phork-content"&gt;
  
&lt;div class="document"&gt;


&lt;p&gt;Displaying two form fields side by side in the drupal backend.&lt;/p&gt;
&lt;p&gt;Works for paragraphs, too.&lt;/p&gt;
&lt;p&gt;Form display configuration:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
Field group: HTML element (Element: div, Extra CSS classes: form-fields-oneline)
+ Field 1
+ Field 2
&lt;/pre&gt;
&lt;p&gt;Keywords: inline&lt;/p&gt;
&lt;div class="section" id="see-also"&gt;
&lt;h1&gt;See also&lt;/h1&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;a class="reference external" href="https://drupal.stackexchange.com/questions/137281/display-field-inputs-side-by-side-in-node-edit-form"&gt;https://drupal.stackexchange.com/questions/137281/display-field-inputs-side-by-side-in-node-edit-form&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="reference external" href="https://www.reddit.com/r/drupal/comments/iw4yll/display_paragraph_fields_inline_on_form_display/"&gt;https://www.reddit.com/r/drupal/comments/iw4yll/display_paragraph_fields_inline_on_form_display/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;

 &lt;/div&gt;
 &lt;div class="phork-meta"&gt;
  &lt;a href="https://p.cweiske.de/797/rev-raw/710ca008454c44636371b3c229a59a9e367c3a97/README.rst" style="float: right"&gt;view raw source&lt;/a&gt;
  &lt;a href="https://p.cweiske.de/797#README.rst"&gt;README.rst&lt;/a&gt;
 &lt;/div&gt;
&lt;/div&gt;
    &lt;div class="phork-file"&gt;
 &lt;div class="phork-content"&gt;
  &lt;style type="text/css"&gt;/**
 * GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2014 Benny Baumann
 * (http://qbnz.com/highlighter/ and http://geshi.org/)
 */
.css .de1, .css .de2 {font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;}
.css  {font-family:monospace;}
.css .imp {font-weight: bold; color: red;}
.css li, .css .li1 {color: #DDD;}
.css .ln {width:1px;text-align:right;margin:0;padding:0 2px;vertical-align:top;}
.css .kw1 {color: #000000; font-weight: bold;}
.css .kw2 {color: #993333;}
.css .kw3 {color: #9932cc;}
.css .kw4 {color: #dc143c;}
.css .kw5 {color: #F5758F;}
.css .co2 {color: #ff0000; font-style: italic;}
.css .coMULTI {color: #808080; font-style: italic;}
.css .es0 {color: #000099; font-weight: bold;}
.css .es2 {color: #000099; font-weight: bold;}
.css .br0 {color: #00AA00;}
.css .sy0 {color: #00AA00;}
.css .st0 {color: #ff0000;}
.css .nu0 {color: #cc66cc;}
.css .re0 {color: #cc00cc;}
.css .re1 {color: #6666ff;}
.css .re2 {color: #3F84D9; font-weight: bold;}
.css .re3 {color: #933;}
.css .re4 {color: #444;}
.css span.xtra { display:block; }
&lt;/style&gt;&lt;div class="code"&gt;&lt;table class="css"&gt;&lt;tbody&gt;&lt;tr class="li1"&gt;&lt;td class="ln"&gt;&lt;pre class="de1"&gt;1
2
3
4
5
6
7
8
9
&lt;/pre&gt;&lt;/td&gt;&lt;td class="de1"&gt;&lt;pre class="de1"&gt;&lt;span class="re1"&gt;.form-fields-oneline&lt;/span&gt; &lt;span class="br0"&gt;&amp;#123;&lt;/span&gt;
&amp;#160; &lt;span class="kw1"&gt;display&lt;/span&gt;&lt;span class="sy0"&gt;:&lt;/span&gt; flex&lt;span class="sy0"&gt;;&lt;/span&gt;
&amp;#160; &lt;span class="kw1"&gt;flex-wrap&lt;/span&gt;&lt;span class="sy0"&gt;:&lt;/span&gt; wrap&lt;span class="sy0"&gt;;&lt;/span&gt;
&lt;span class="br0"&gt;&amp;#125;&lt;/span&gt;
&amp;#160;
&lt;span class="re1"&gt;.form-fields-oneline&lt;/span&gt; &lt;span class="re1"&gt;.form-item&lt;/span&gt; &lt;span class="br0"&gt;&amp;#123;&lt;/span&gt;
&amp;#160; &lt;span class="kw1"&gt;margin-right&lt;/span&gt;&lt;span class="sy0"&gt;:&lt;/span&gt; &lt;span class="re3"&gt;15px&lt;/span&gt;&lt;span class="sy0"&gt;;&lt;/span&gt;
&lt;span class="br0"&gt;&amp;#125;&lt;/span&gt;
&amp;#160;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
 &lt;/div&gt;
 &lt;div class="phork-meta"&gt;
  &lt;a href="https://p.cweiske.de/797/rev-raw/710ca008454c44636371b3c229a59a9e367c3a97/admin-tweaks.css" style="float: right"&gt;view raw source&lt;/a&gt;
  &lt;a href="https://p.cweiske.de/797#admin-tweaks.css"&gt;admin-tweaks.css&lt;/a&gt;
 &lt;/div&gt;
&lt;/div&gt;
    &lt;div class="phork-file"&gt;
 &lt;div class="phork-content"&gt;
  &lt;div class="image"&gt;&lt;img src="797/rev-raw/710ca008454c44636371b3c229a59a9e367c3a97/screenshot-config.png" alt="screenshot-config.png"/&gt;&lt;/div&gt;
 &lt;/div&gt;
 &lt;div class="phork-meta"&gt;
  &lt;a href="https://p.cweiske.de/797/rev-raw/710ca008454c44636371b3c229a59a9e367c3a97/screenshot-config.png" style="float: right"&gt;view raw source&lt;/a&gt;
  &lt;a href="https://p.cweiske.de/797#screenshot-config.png"&gt;screenshot-config.png&lt;/a&gt;
 &lt;/div&gt;
&lt;/div&gt;
    &lt;div class="phork-file"&gt;
 &lt;div class="phork-content"&gt;
  &lt;div class="image"&gt;&lt;img src="797/rev-raw/710ca008454c44636371b3c229a59a9e367c3a97/screenshot-result.png" alt="screenshot-result.png"/&gt;&lt;/div&gt;
 &lt;/div&gt;
 &lt;div class="phork-meta"&gt;
  &lt;a href="https://p.cweiske.de/797/rev-raw/710ca008454c44636371b3c229a59a9e367c3a97/screenshot-result.png" style="float: right"&gt;view raw source&lt;/a&gt;
  &lt;a href="https://p.cweiske.de/797#screenshot-result.png"&gt;screenshot-result.png&lt;/a&gt;
 &lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</html></oembed>
