Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to have a link look of non-<a> element?

Tags:

Is there a way to assign the Bootstrap link style to a non <a> element?

I mean something like this:

<span class="link">Some text</span>
like image 759
kekko12 Avatar asked Apr 04 '14 15:04

kekko12


People also ask

How do you hyperlink text without underline?

You can do so anywhere in the <body></body> tag to make the link not have an underline. Defining a style property this way is called inline styling. The style is specified "inline," in the element itself, in the body of your page.


1 Answers

You can use the classes btn btn-link. These are Bootstrap link styles that usually are found on anchor tags or button tags but if you use it on any other text it will use those styles on your text. It may not yield the exact same results so your CSS may need to be tweaked.

like image 124
Rachel S Avatar answered Sep 24 '22 10:09

Rachel S