Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I add space between anchor tags?

Tags:

html

css

anchor

I want to give my anchor tags some elbow room. I tried to add both padding and margin, and neither one work (even when I give them a lot, as you can see here):

a {
    line-height: 1em;
    display: inline-block;
    text-decoration: none;
    padding: 120;
    margin: 42;
}

How can I add some spacing between the anchor elements?

The entire kit and kaboodle are here: http://jsfiddle.net/clayshannon/pRgQL/

I ended up going with this: http://jsfiddle.net/clayshannon/pRgQL/18/

like image 579
B. Clay Shannon-B. Crow Raven Avatar asked Dec 27 '13 22:12

B. Clay Shannon-B. Crow Raven


People also ask

How do you put a space between links in HTML?

To create extra spaces before, after, or in-between your text, use the   (non-breaking space) extended HTML character.

Can we give space in between the tag names?

As tags go, spaces are superfluous. Leading spaces are ignored and trailing spaces mean nothing. The best practice is to not use spaces that have no meaning.

How do you put a space between two icons in CSS?

To add space between icons:Click inside each cell then from the Properties pane, in Style add padding-right.

Can you put a div inside an anchor tag?

Nothing is wrong with placing a div inside a tag. In fact, you can place just about anything inside a tag as long as they are categorized as transparent , except that no descendant may be interactive content (eg: buttons or inputs) or an a element, and no descendant may have a specified tabindex attribute.


1 Answers

<a>1<a/>&nbsp;&nbsp;&nbsp;&nbsp;<a>2<a/>

1    2

non breaking space if you like ..

like image 89
Kickaha Avatar answered Sep 18 '22 16:09

Kickaha