Anicho
Anicho

Reputation: 2667

width issue with span and a tag

I have an issue with the width of the link with a span tag within it you can see it here:

JSFiddle Example

You can see that link 2 has a bigger width then the visual suggests? Any idea how whats going on here?

Link 1 also has a very wide width but is hidden between link 2.

Upvotes: 0

Views: 99

Answers (1)

Mr. Alien
Mr. Alien

Reputation: 157424

It is rendering correctly, I guess you mismatched your flow with border colors, you must be looking for this?

Nothing's wrong for me

My Fiddle

Edit: Note you've given borders to span and not a, if that's the point it should be this because <a> will take up 100% width because it is a block level element

Upvotes: 1

Related Questions