当前位置: 首页 > news >正文

Pure CSS Buttons – Good Button Style and No Images

Pure CSS buttons that actually look good – is it a myth? These days, I don’t believe they are. Sometimes I’m too lazy to get onto photoshop and play around with designs until I work something good out, or I don’t feel that it’s worth it to hire a professional designer. If there’s one thing I do know though, it’s how to code a design in css. Here are some buttons that I designed purely in CSS, and I’ll give you the CSS for these buttons completely free ;) .

BUTTONS THAT I MADE USING JUST CSS:

 

CSS Button Style #1 – Inspired by Twitter

EXAMPLE OF BUTTON STYLE #1

CSS CODE FOR STYLE #1

<style type="text/css">
.styled-button-1 {
	-webkit-box-shadow: rgba(0, 0, 0, 0.199219) 0px 1px 0px 0px;
	background-color: #FA2;
	border-radius: 5px;
	border-bottom-color: #333;
	border: none;
	border-width: 0;
	box-shadow: rgba(0, 0, 0, 0.199219) 0px 1px 0px 0px;
	color: #333;
	font-family: 'Helvetica Neue', Arial, sans-serif;
	font-size: 16px;
	font-weight: bold;
	height: 32px;
	padding: 4px 16px;
	text-shadow: #FE6 0px 1px 0px;
}
</style>

CSS Button Style #2

EXAMPLE OF BUTTON STYLE #2

CSS CODE FOR STYLE #2

<style type="text/css">
.styled-button-2 {
	-webkit-box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 0px 0px;
	background-color: #7cceee;
	border-radius: 5px;
	border-bottom-color: #333;
	border: 1px solid #61c4ea;
	box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 0px 0px;
	color: #333;
	font-family: 'Verdana', Arial, sans-serif;
	font-size: 14px;
	text-shadow: #b2e2f5 0px 1px 0px;
	padding: 5px;
}
</style>

CSS Button Style #3

EXAMPLE OF BUTTON STYLE #3 – FACEBOOK STYLE

CSS CODE FOR STYLE #3

<style type="text/css">
.styled-button-3 {
	-webkit-box-shadow: rgba(0, 0, 0, 0.0.97) 0px 1px 0px 0px;
	background-color: #5B74A8;
	border: 1px solid #29447E;
	font-family: 'Lucida Grande', Tahoma, Verdana, Arial, sans-serif;
	font-size: 12px;
	font-weight: bold;
	padding: 2px 6px;
	height: 28px;
	color: #fff;
	border-radius: 5px;
}
</style>

CSS Button Style #4

EXAMPLE OF BUTTON STYLE #4

CSS CODE FOR STYLE #4

<style type="text/css">
.styled-button-4 {
	-webkit-box-shadow: rgba(0, 0, 0, 0.0976562) 0px 1px 0px 0px;
	background-color: #EEE;
	border: 1px solid #999;
	color: #666;
	font-family: 'Lucida Grande', Tahoma, Verdana, Arial, Sans-serif;
	font-size: 11px;
	font-weight: bold;
	padding: 2px 6px;
	height: 28px;
}
</style>

CSS Button Style #5

EXAMPLE OF BUTTON STYLE #5

CSS CODE FOR STYLE #5

<style type="text/css">
.styled-button-5 {
	background-color: #ed8223;
	color: white;
	font-family: 'Helvetica Neue', sans-serif;
	font-size: 18px;
	line-height: 30px;
	border-radius: 20px;
	border: 0px;
	text-shadow: #C17C3A 0px -1px 0px;
	width: 120px;
	height: 32px;
}
</style>

I’m excited to hear which ones you think are the best, so let me know here in the comments, okay? If you’re comfortable using images in your design styles, then you might want to check out this post on adjustable css buttons from my friend Soh Tanaka ;)

I have a related post on table css design styles that you may also appreciate.

 

转:http://pythoughts.com/pure-css-buttons/

相关文章:

  • Hook API 原理 解析
  • Android Checkbox在对话框中显示
  • 2003 域环境下 搭建证书服务器
  • jquery常用技巧拾贝
  • C# 控件开发中常用属性整理
  • ACL技巧
  • asp.net 中sender 的理解
  • 如何正确理解面向对象 经典大白话
  • SQL Server 2008 函数大全(完整版)
  • 各存储厂商raid的区别-luoqiangb@dc
  • perl类似于shell_date的功能
  • WTL学习之对话框和控件
  • 人的一生需要看淡的几个方面
  • Smack 结合 Openfire服务器,建立IM通信,发送聊天消息
  • 数据字典存储事件实例
  • 78. Subsets
  • JavaScript-Array类型
  • linux安装openssl、swoole等扩展的具体步骤
  • nodejs调试方法
  • Object.assign方法不能实现深复制
  • OpenStack安装流程(juno版)- 添加网络服务(neutron)- controller节点
  • Python实现BT种子转化为磁力链接【实战】
  • SpringBoot 实战 (三) | 配置文件详解
  • Terraform入门 - 1. 安装Terraform
  • ViewService——一种保证客户端与服务端同步的方法
  • vue-router的history模式发布配置
  • Yeoman_Bower_Grunt
  • 道格拉斯-普克 抽稀算法 附javascript实现
  • 等保2.0 | 几维安全发布等保检测、等保加固专版 加速企业等保合规
  • 记一次和乔布斯合作最难忘的经历
  • 看图轻松理解数据结构与算法系列(基于数组的栈)
  • 理清楚Vue的结构
  • 如何正确配置 Ubuntu 14.04 服务器?
  • 限制Java线程池运行线程以及等待线程数量的策略
  • ​Python 3 新特性:类型注解
  • #LLM入门|Prompt#3.3_存储_Memory
  • (1)(1.9) MSP (version 4.2)
  • (1)bark-ml
  • (11)工业界推荐系统-小红书推荐场景及内部实践【粗排三塔模型】
  • (2021|NIPS,扩散,无条件分数估计,条件分数估计)无分类器引导扩散
  • (Repost) Getting Genode with TrustZone on the i.MX
  • (笔试题)分解质因式
  • (动手学习深度学习)第13章 计算机视觉---图像增广与微调
  • (附源码)ssm基于jsp高校选课系统 毕业设计 291627
  • (太强大了) - Linux 性能监控、测试、优化工具
  • (转)linux自定义开机启动服务和chkconfig使用方法
  • (转)可以带来幸福的一本书
  • *Django中的Ajax 纯js的书写样式1
  • .NET 4.0网络开发入门之旅-- 我在“网” 中央(下)
  • .NET Framework 4.6.2改进了WPF和安全性
  • .NET Windows:删除文件夹后立即判断,有可能依然存在
  • .NET 中的轻量级线程安全
  • .NET6 开发一个检查某些状态持续多长时间的类
  • .xml 下拉列表_RecyclerView嵌套recyclerview实现二级下拉列表,包含自定义IOS对话框...
  • ::什么意思