html - Paragraph tag being displayed in new line -


i need value "1" displayed adjacent "id" field displaying in new line.the

tag supposed inline not sure why being moved new line.

jsfiddle

html

<b>id    : <p id="productid">1</p></b> 

#productid{     display:inline-block; } 

p block level element default. can set display inline-block make describe using basic css.

i'm not sure if unable access css, in case cannot, see oriol's answer. no reason not make span.

bit of side note, little odd put p tag inside b tag. technically can this, looks using span tag more proper way handle this.


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -