Skip to content Skip to sidebar Skip to footer

Remove The Thin Line In Header Images In Bootstrap

I have basic code with bootstrap and a svg sprit in a header / menu.. and there is a thin gray background line in the icons. http://codepen.io/anon/pen/dpzKoQ?editors=1100 can you

Solution 1:

It's because you are using an img tag with no src attribute. Chrome is essentially indicating the size of the container with nothing in it.

If you don't want to place an image between the anchor tags, then don't use an image tag. It's not necessary to place anything between the tags.

Demo here.

Solution 2:

You can use div tag with background-image in css instead of using img tag.

Post a Comment for "Remove The Thin Line In Header Images In Bootstrap"