{"id":328,"date":"2016-09-19T19:31:10","date_gmt":"2016-09-19T19:31:10","guid":{"rendered":"https:\/\/wiki.samuelchopard.ch\/?p=328"},"modified":"2019-03-18T14:29:25","modified_gmt":"2019-03-18T13:29:25","slug":"prevent-a-div-from-starting-a-new-line","status":"publish","type":"post","link":"https:\/\/samuelchopard.ch\/wiki\/library\/prevent-a-div-from-starting-a-new-line\/","title":{"rendered":"Prevent a div from starting a new line"},"content":{"rendered":"<p><!--more--><\/p>\n<pre class=\"EnlighterJSRAW\">.selector {\n     display: inline;\n}<\/pre>\n<p>You can also apply this parameter directly in the HTML div by adding the following string to the div (just after the class):<\/p>\n<pre class=\"EnlighterJSRAW\">&lt;div class=\"myclass\" style=\"display:inline;\"&gt;&lt;\/div&gt;<\/pre>\n<p>&nbsp;<br \/>\nSource: <a target=\"_blank\" href=\"http:\/\/stackoverflow.com\/questions\/1826735\/how-do-i-prevent-div-tag-starting-a-new-line\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/stackoverflow.com\/questions\/1826735\/how-do-i-prevent-div-tag-starting-a-new-line<\/a><\/p>\n","protected":false},"excerpt":{"rendered":".selector { display: inline; } You can also apply this parameter directly in the HTML div by adding the following [...]","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[88,142,157,227,281],"class_list":["post-328","post","type-post","status-publish","format-standard","hentry","category-htmlcss","tag-div","tag-inline","tag-line","tag-prevent","tag-style"],"_links":{"self":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts\/328","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/comments?post=328"}],"version-history":[{"count":1,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts\/328\/revisions"}],"predecessor-version":[{"id":54902,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts\/328\/revisions\/54902"}],"wp:attachment":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/media?parent=328"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/categories?post=328"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/tags?post=328"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}