Top
Home Forum Upload Contact About Us Share Login 🌙

logo

CSS Web Buttons Basic Dropdown Properties


css web buttons basic dropdown properties,Collection of hand-picked free HTML and CSS button code examples. In the last years, the web has been invaded by the cool buttons provided by libraries like Bootstrap. Even if these libraries are cool and feature rich, they're also really heavy, and it's a waste to load hundreds of kilobytes if you need to show just one button. In this article, we'll see some really cool looking responsive buttons using only a few lines of CSS. You are free to copy, modify and use this code as you wish. All the buttons shown here can scale accordingly to the font-size attribute, and should work in any relatively recent browser.

Facebook Tweet1

demo basic dropdown button


<style>
.button {
 text-align: center;
border: 1px solid transparent;
padding: 4px 48px;
font-size: 17px;
border-radius: 4px;
cursor: pointer;}

.dropdown-menu {  position: absolute;  top: 100%;  left: 0;  z-index: 1000;  display: none;  float: left;  min-width: 10rem;  padding: 0.5rem 0;  margin: 0.125rem 0 0;  font-size: 1rem;  color: #ffffff;  text-align: left;  list-style: none;  background-color: #18191b;  background-clip: padding-box;  border: 1px solid #2c2e33;  border-radius: 0.25rem; align-items: center !important;}


.dropdown-item {  display: block;  width: 100%;  padding: 0.25rem 1.5rem;  clear: both;  font-weight: 400;  color: #ffffff;  text-align: inherit;  white-space: nowrap;  background-color: transparent;  border: 1px solid #252321; }
.dropdown-item:hover, .dropdown-item:focus {color: #ccc;    text-decoration: none;    background-color: #252321; }  
.dropdown-menu.show {  display: block; }

.blue{
  color: #fff;
  background-color: #0090e7;
  border-color: #0090e7; }
  .blue:hover{
    color: #fff;
    background-color: #0078c1;
    border-color: #0070b4; }
  .blue:focus {
    color: #fff;
    background-color: #0078c1;
    border-color: #0070b4;
    box-shadow: 0 0 0 0.2rem rgba(38, 161, 235, 0.5); } 

.green {
  color: #fff;
  background-color: #00d25b;
  border-color: #00d25b; }
  .green:hover {
    color: #fff;
    background-color: #00ac4a;
    border-color: #009f45; }
  .green:focus {
    color: #fff;
    background-color: #00ac4a;
    border-color: #009f45;
    box-shadow: 0 0 0 0.2rem rgba(38, 217, 116, 0.5); }

.red {
  color: #fff;
  background-color: #fc424a;
  border-color: #fc424a; }
  .red:hover {
    color: #fff;
    background-color: #fb1c26;
    border-color: #fb101a; }
  .red:focus {
    color: #fff;
    background-color: #fb1c26;
    border-color: #fb101a;
    box-shadow: 0 0 0 0.2rem rgba(252, 94, 101, 0.5); }

.orange {
  color: #212529;
  background-color: #ffab00;
  border-color: #ffab00; }
  .orange:hover {
    color: #212529;
    background-color: #d99100;
    border-color: #cc8900; }
  .orange:focus{
    color: #212529;
    background-color: #d99100;
    border-color: #cc8900;
    box-shadow: 0 0 0 0.2rem rgba(222, 151, 6, 0.5); }
 </style>

<button class="button blue" type="button" data-toggle="dropdown" >Blue ▼</button>
<div class="dropdown-menu">
<a class="dropdown-item" href="#">Item I</a>
<a class="dropdown-item" href="#">Item II</a>
<a class="dropdown-item" href="#">Item III</a>
<a class="dropdown-item" href="#">Item IV</a></div>

<button class="button red" type="button" data-toggle="dropdown" >Red ▼</button>
<div class="dropdown-menu">
<a class="dropdown-item" href="#">Item I</a>
<a class="dropdown-item" href="#">Item II</a>
<a class="dropdown-item" href="#">Item III</a>
<a class="dropdown-item" href="#">Item IV</a></div>

<button class="button green" type="button" data-toggle="dropdown" >Green ▼</button>
<div class="dropdown-menu">
<a class="dropdown-item" href="#">Item I</a>
<a class="dropdown-item" href="#">Item II</a>
<a class="dropdown-item" href="#">Item III</a>
<a class="dropdown-item" href="#">Item IV</a></div>

<button class="button orange" type="button" data-toggle="dropdown" >Orange ▼</button>
<div class="dropdown-menu">
<a class="dropdown-item" href="#">Item I</a>
<a class="dropdown-item" href="#">Item II</a>
<a class="dropdown-item" href="#">Item III</a>
<a class="dropdown-item" href="#">Item IV</a></div>

<script src="https://www.netbax.net/button/css/drop.js"></script>        

web design maker from 100 €

ads
web sale design maker

html properties tutorial

html

HTML is the main markup language for web pages, and its elements are the basic building blocks of web pages. HTML is written in the form of HTML elements consisting of tags enclosed in "greater than" and "less than" symbols within the content of the web page.



html property tutorial

css properties tutorial

css1

CSS (Cascading Style Sheets) is a computer language that belongs to the category of style sheet languages used to control the appearance of a document written in a markup language.It is used to control the appearance of a document written in HTML and XHTML, that is, to control the appearance of a web page and a website in general. CSS is a computer language intended to stylistically develop a web page, ie to formulate more features, colors, alignment and gives more features than html. For a beautiful and well-designed website the use of CSS is considered necessary.


css properties tutorial

javascript properties tutorial

java

Java is a set of computer software and specifications developed by James Gosling at Sun Microsystems, later acquired by Oracle Corporation, which provides a system for developing application software and its development in a multi-platform computing environment.



javascrip properties tutorial

creation properties tutorial
creation1

In this chapter I call creation I will present you creations html, css and javascript that are very useful and creative in a web site.




creation properties tutorial

css menu bar horizontal & vertical
css-menu

having easy-to-use horizontal & vertical menu is important for any web site. with css you can transform boring html menus into good-looking horizontal & vertical bars. horizontal & vertical menu is such an important part of your website. it’s how your visitors navigate to the main areas of your site and makes it easy for them to find your good content.


css menu bar horizontal & vertical

css notebook paper design

notebook1

Question: I am trying to make a notebook paper on my blog, and i wanted to make horizontal lines in it. I was successfully able to draw one horizontal line using css, but i am unable to find a way to repeat it, so that it can fill the entire page.

answer: this tutorial will show you how to create a notebook themed website using only css.


css notebook paper design

fancy text generator

fancy text generator

a fancy cool font generator that helps create stylish text font styles with beautiful symbols and fancy characters for instagram other places.




fancy text generator

online privacy policy generator

alt-key1

online privacy policy generator. Generate a Privacy Policy or a Privacy Notice for your site. Comply with CCPA, GDPR, CalOPPA, Google Adsense and affiliate programs.




online privacy policy generator

online favicon text maker
keyboard

online favicon text maker, Quickly generate your favicon from text by selecting the text, fonts, the colors, and border. Download your favicon in the most up to date formats.




online favicon text maker

online meta tag code generator full complete

button1

online html meta tag code generator full complete use for generate your meta information code like meta description, meta keyword etc. just set parameter value and generate Meta code. Search Engine find your web page easy or optimize your website.


online meta tag code generator

online banner text generator

banner1

online banner text generator a helpful tool to generate image banner.Upload your assets, company logo, Simultaneously edit text, image and effects directly on all banners.




online banner text generator

online 3d text generator

3d

online 3D text generator, a free online 3D tool to create 3D typography. Quick and easy, this online tool helps you create the best text design possible with just a few clicks.It can be used for your company, to create a 3D text logos, or for art. This 3D text maker will only take you a few clicks to create the perfect 3D logo.


online 3d text generator

online html marquee generator

marquee

online html marquee generator.Link,text,images, Marquee Generator Text Marquee Generator.Use this HTML marquee generator to create scrolling text or images for your website.




online html marquee generator

Online Font Family Generator

font

Online Font Family Generator, CSS font family generator is a very handy resource for webdevelopers and general. Generate in an instant awesome header text styles or content text styles for your website. More than 1000 font family styles are integrated that you can use.



Online Font Family Generator

Online neon text generator

button2

online neon text generator, a free online neon tool to create neon typography. Quick and easy, this online tool helps you create the best text design possible with just a few clicks.It can be used for your company, to create a neon text logos, or for art. This neon text maker will only take you a few clicks to create the perfect neon logo.


Online neon text generator

footer

If you’d like to send us feedback, or have any other question, please fill out the form below and we will get back to you as soon as possible.