Tuesday, 15 February 2011

html - How do I prevent DIV tag starting a new line? -


I want to output a tag to a line of text in the browser. When it is sung, it appears that the DIG causes a new line. How can I include content in the div tag on the same tag - this is my code.

  & lt ;? Php echo ("& lt; a href = \" pagea.php? Id = $ Id \ "& gt; page A & lt; / a & gt;")? & Gt; & Lt; Div id = "contentInfo_new" & gt; & Lt; Script type = "text / javascript" src = "getData.php? Id =  

I have tried to clean it here. How can I do this display on a single line?

div

Code> span element, which is inline.

If you want to use actually div , enter style = "display: inline" . (You can also put it in a CSS rule)


No comments:

Post a Comment