Jump to content

Recommended Posts

/* Кнопка */.button {float: left;clear: left;cursor: pointer; }.button {	-moz-box-shadow:inset 0px 1px 0px 0px #ffffff;	-webkit-box-shadow:inset 0px 1px 0px 0px #ffffff;	box-shadow:inset 0px 1px 0px 0px #ffffff;	background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ededed), color-stop(1, #dfdfdf) );	background:-moz-linear-gradient( center top, #ededed 5%, #dfdfdf 100% );	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#dfdfdf');	background-color:#ededed;	-moz-border-radius:6px;	-webkit-border-radius:6px;	border-radius:6px;	border:1px solid #cccccc;	display:inline-block;	color:#555555;	font-family:arial;	font-size:14px;	font-weight:bold;	padding:6px 20px;	text-decoration:none;	text-shadow:1px 1px 0px #ffffff;}.button:hover {	background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #dfdfdf), color-stop(1, #ededed) );	background:-moz-linear-gradient( center top, #dfdfdf 5%, #ededed 100% );	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#dfdfdf', endColorstr='#ededed');	background-color:#dfdfdf;}.button:active {	position:relative;	top:1px;}
Link to post
Share on other sites

Спасибо, помогло. Изменил цвет кнопки. Теперь пробую изменить цвет кнопки, в зависимости добавлен товар или нет. Добавить-один цвет, а если уже добавлен в корзину-другой.

Link to post
Share on other sites

}.button:hover {	background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #dfdfdf), color-stop(1, #ededed) );	background:-moz-linear-gradient( center top, #dfdfdf 5%, #ededed 100% );	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#dfdfdf', endColorstr='#ededed');	background-color:#dfdfdf;}.button:active {	position:relative;	top:1px;}


http://htmlbook.ru/css/hover здесь можно почитать что к чему
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...