How to put more than one link on the same button?

Asked

Viewed 55 times

-1

  • You sent the question to the site in English... Rewrite the question in our language.

  • Well I looked at the site and from the source I could see that it was done in bootstrap. I think the first example is very simple, see if it helps you. https://getbootstrap.com/docs/4.0/components/dropdowns/? Hugs.

1 answer

1

The site you quoted despite being a Wordpress it uses Bootstrap 3, and this is a simple component of framework, flame button dropdowns and you can see the documentation here https://getbootstrap.com/docs/3.3/components/#btn-dropdowns-single

inserir a descrição da imagem aqui

Follow an example using this js component of BS3

inserir a descrição da imagem aqui

<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" />
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

<!-- Single button -->
<div class="btn-group">
	<button type="button" class="btn btn-primary">
		Sem drop
	</button>
</div>

<!-- Single button -->
<div class="btn-group">

	<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true"
		aria-expanded="false">
		Com DropDown <span class="caret"></span>
	</button>
	<ul class="dropdown-menu">
		<li><a href="#">Action</a></li>
		<li><a href="#">Another action</a></li>
	</ul>
</div>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.