.
Hello;
I need to display <div> tags side-by-side or inline. This style sheet code will do what I need:
div.display_inline
{
display: inline;
}
Using just the <div> tags the text displays inline just fine.
<div class="display_inline">
one two three
</div>
<div class="display_inline">
four five six
</div>
The above will display “one two three four five six” on one line.
However, if I try to enclose the text within each <div> tag with a <p> tag like this:
<div class="display_inline">
<p>one two three</p>
</div>
<div class="display_inline">
<p>four five six</p>
</div>
The text ends up on two lines like this:
“one two three
four five six”
Can somebody tell me how to make the text within each <p> tag stay inside of the <div> tags?
Thanks.