.
Hello;
I need to display <div> tags side-by-side or inline. This style sheet code will do what I need:
Using just the <div> tags the text displays inline just fine.PHP Code:div.display_inline
{
display: inline;
}
The above will display "one two three four five six" on one line.PHP Code:<div class="display_inline">
one two three
</div>
<div class="display_inline">
four five six
</div>
However, if I try to enclose the text within each <div> tag with a <p> tag like this:
The text ends up on two lines like this:PHP Code:<div class="display_inline">
<p>one two three</p>
</div>
<div class="display_inline">
<p>four five six</p>
</div>
"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.








Bookmarks