I have this stylesheet:
*{ padding: 0px; margin: 0px; } a{ background:yellow; }
and this webpage:
<a href="/blog/">Home</a> <a href="/about/">About</a> <a href="/contact/">Contact</a>
Results in:
How do I make those anchor tag to "touch" each other,removing that unwanted space in-between?
thanks Luca
Padding is used to create space around an element's content, inside of any defined borders.
The simplest way to add a space in HTML (besides hitting the spacebar) is with the non-breaking space entity, written as or  . Multiple adjacent non-breaking spaces won't be collapsed by the browser, letting you “force” several visible spaces between words or other page elements.
You need to remove the whitespace (in this case the newline) between your tags. Some browsers render it as a space.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With