HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
This section, we introduce the use of CSS to create the button.
We can use the background-color
property to set the button color:
We can use the font-size
property to set the size of the button:
We can use the border-radius
property to set the fillet button:
We can use the border
property of a button border color:
We can use the :hover
selector to modify the style by hovering over the button.
Tip: We can use the transition-duration
property set to "hover" effect speed:
We can use the box-shadow
property to add a shadow to the button:
We can use the opacity
property to add transparency (looks similar to "disabled" attribute effects) for the button.
Tip: What can I add cursor
property and set to "not-allowed" to set up a disabled image:
By default, the size of the button text on the button has decided (based on text matching length). We can use the width
property to set the width of the button:
Tip: If you want to set a fixed width can use pixels (px) as a unit, if you want to set responsive buttons can be set as a percentage.
Remove from the outside and add float:left
set of buttons:
We can use the border
property to set the button group with border:
Mouse over the arrow button to add:
Add clicks "ripple" effect:
Click when you add "pull-down" effect: