In any case, that "About Us" can be displayed as...">

Make html button as text

<li id="item2"><button onclick="myFunction2()">About us </button></li> 

In any case, that "About Us" can be displayed as text and not as a button on a website?

+5
source share
4 answers

Like this.

 #item2>button{background:none;border:none;outline:none;cursor:pointer} 
 <li id="item2"><button onclick="myFunction2()">About us </button></li> 
+3
source

I just changed the HTML element from <button> to <p> and it worked, looking just like regular text.

 <p onclick="myFunction2()">About us</p> 
0
source

That should do the job.

 button,button:focus,button:active { border:none; background:none; outline:none; } 

 button, button:focus, button:active { border: none; background: none; outline: none; } 
 <li id="item2"> <button type="button" onclick="onButtonClick()">About us</button> </li> 
0
source

Add this

 button { background:none; border:none; margin:0; padding:0; } button:focus{ outline: 0; } 

Fiddle

-1
source

All Articles