开发者

Help getting CSS formatting correct

Grrr. Anyways, I formatted all my code elements so that they indented 40px. Now, I have line breaks between my <span>? All of my italicized texts are supposed to be next to their respective code. Now, they are on a seperate line break.

If you check my source code, the spans have the following code:

<span class="taginfo">(<em>deprecated</em>)</span></code>

That's basically it. It was fine before I formatted the code to an indent. If it helps, another member on stackoverflow helped me format the code using this:

.subst开发者_开发技巧ructure code{
 display: block;
 margin: 0 40px;
 line-height: 18px;
 font-size: 13px;
}

.substructure is the div id for my code sections


Remove the display: block. That basically turns a span into a div.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜