Abhishek Tripathi
Abhishek Tripathi

Reputation: 1600

Button working in chrome but not in mozilla

I am using this html code and this class belongs to bootstrap.css

<button class="btn btn-success">
    <a style="color:white;" href="/registration/form">REGISTER</a> 
</button>

in chrome on clicking the button it is going to the given link but it is not working in mozilla firefox

Upvotes: 2

Views: 2787

Answers (1)

Dan
Dan

Reputation: 9488

I am not sure what is causing that, but if you make the <a> tag into a button it will fix the issue:

<a class="btn btn-success" style="color:white;" href="/registration/form">REGISTER</a> 

Upvotes: 5

Related Questions