egginfo logo
egginfo.org Knowledgebase
Search:     Advanced search
Browse by category:

<div> - using div tags wiithout creating a new line.

Add comment
Views: 396
Votes: 0
Comments: 0
Posted: 09 Jan, 2009
by: Gh0st ..
Updated: 09 Jan, 2009
by: Gh0st ..
Normally <div> would force a new line, but occasionally you might not want this to happen.

e.g.

<div>Hello</div> <div>World</div>

Displayed as:

Hello
World


To prevent this bahaviour you would use the inline display style

e.g.

<div style="display:inline">Hello</div> <div style="display:inline">World</div>

Displayed as:

Hello World



RSS

eXTReMe Tracker