Can I use the DIV tag function as a SPAN tag? that is, removing line breaks before and after the div tag.
Yes, use CSS
display: inline
DIVs are block level elements, which means they have a default value display:block- give it display:inline(which SPANs) override this. Please be a good programmer and do it with CSS not inline styles :)
display:block
display:inline
, display: inline;, beware ...
display: inline;
, display: inline; display: inline-block; , :
display: inline-block;
http://www.brunildo.org/test/InlineBlockLayout.html
http://www.brunildo.org/test/inline-block.html
Source: https://habr.com/ru/post/1764453/More articles:What is an anonymous PHP function? - phpImport .CSV files to SQLite - importGrails hasMany: when a child updates, changes to the parent version - grailsCan libcURL be configured to use my .curlrc when using PHP? - phpHow to set up your username in Git if it contains special characters? - gitWhat happened to the head of the DOM level 3 event group? - javascriptКак добавитьв качестве первого элемента списка в- javascriptXUL button not showing - javascriptСоздание кнопки XUL дает "код отказа компонента", - javascriptWhat is the use of using another model with Entity Framework in DDD - .netAll Articles