Shamoon
Shamoon

Reputation: 43617

Why is my `span` so wide?

I have:

<div class="soldhere-title-large">
sold here
<span class="title-dot-span">. </span>
in 
</div>

The CSS for my span is:

.title-dot-span {
  font-size: 100pt;
  width: 10px;
  color: #ddd;
  letter-spacing: 1px;
}

yet, the span has a lot of space after the . content. Any ideas?

Upvotes: 0

Views: 1027

Answers (2)

Sunjay Varma
Sunjay Varma

Reputation: 5115

Use display: block; in your CSS.

Upvotes: 0

Jonas G. Drange
Jonas G. Drange

Reputation: 8845

There is a space in your span. The space is 100pt big. This is what's making your span wide.

Upvotes: 3

Related Questions