Bootstrap v4+ css class for pointer cursor

w411 3 picture w411 3 · Nov 13, 2017 · Viewed 220.1k times · Source

Is there any css class or attribute for pointer:cursor in bootstrap 4 specially for button or link?

Answer

Klooven picture Klooven · Nov 13, 2017

UPDATE for Bootstrap 4 stable

The cursor: pointer; rule has been restored, so buttons will now by default have the cursor on hover:

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<button type="button" class="btn btn-success">Sample Button</button>


No, there isn't. You need to make some custom CSS for this.

If you just need a link that looks like a button (with pointer), use this:

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css">
<a class="btn btn-success" href="#" role="button">Sample Button</a>