Remove line break HTML -


i'm wondering how remove line break in html. example code have 2 hello worlds on top of each other. i'm sorry if i'm not enough @ programming in site.

<p>hello world</p> <p>hello world</p> 

you've got few options:

p {     display: inline-block; } 

js fiddle demo.

or:

p {     display: inline; } 

js fiddle demo.

if it's white-space between bottom of first p , top of second p want remove:

p {     /*      top  right  bottom  left */     margin: 0    0      0       0; } 

js fiddle demo.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -