开发者

Extra margin in span tag?

开发者 https://www.devze.com 2023-03-20 19:42 出处:网络
I have this code: <span class=\"total white bold\" styl开发者_开发知识库e=\"background: #C2C555\">TOTAL:</span>

I have this code:

<span class="total white bold" styl开发者_开发知识库e="background: #C2C555">TOTAL:</span>
<span style="background: #C2C555; margin: 0;">1 night</span>
<span class="cost">€ 120.00</span>

I expected the three spans would be together, but there is a space between them.

How to remove that space?

I'm using Chrome.

Regards

Javi


Remove the line-breaks, i.e.

<span class="total white bold" style="background: #C2C555">TOTAL:</span><span style="background: #C2C555; margin: 0;">1 night</span><span class="cost">€ 120.00</span>

jsFiddle: http://jsfiddle.net/LECBb/

0

精彩评论

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