如何制作多行p标签&文字显示为一张整洁的表

时间:2016-11-29 09:06:42

标签: html css css3 styles

我的HTML文本格式如下:

<p>Something</p> Some other text here.
<p>Something</p> Some other text here.
<p>Something</p> Some other text here.

现在,当我在浏览器中显示它时,它显示如下:

Something

Some other text here.

Something

Some other text here.

Something

Some other text here.

但是,我想在一张整洁的表格中展示它。

像:

Something Some text here.

Something Some text here.

Something Some text here.

有可能吗?

编辑:对不起伙计们!我认为这是不可能的。我要回去工作了。

1 个答案:

答案 0 :(得分:0)

<p>标记中添加一些css,

p{
  display:inline;
  margin-right:30px;
  }

&#13;
&#13;
p{
  display:inline;
  margin-right:30px;
  }
&#13;
<p>Something</p> Some other text here.<br> <p>Something</p> Some other text here.<br> <p>Something</p> Some other text here.
&#13;
&#13;
&#13;