Q:

آموزش ساخت دکمه های گرادینتی

پیش نمایش

اول از همه باید کد استایل رادرون تگ هد و قبل از بادی قرار بدید

کد:
<style type="text/css">

.gradientbuttons ul{

padding: 3px 0;

margin-left: 0;

margin-top: 1px;

margin-bottom: 0;

font: bold 13px Verdana;

list-style-type: none;

text-align: center; /*set to left, center, or right to align the menu as desired*/

}

.gradientbuttons li{

display: inline;

margin: 0;

}

.gradientbuttons li a{

text-decoration: none;

padding: 5px 7px;

margin-right: 5px;

border: 1px solid #778;

color: white;

border:1px solid gray;

background: #3282c2;

border-radius: 8px; /*w3c border radius*/

box-shadow: 3px 3px 4px rgba(0,0,0,.5); /* w3c box shadow */

-moz-border-radius: 8px; /* mozilla border radius */

-moz-box-shadow: 3px 3px 4px rgba(0,0,0,.5); /* mozilla box shadow */

background: -moz-linear-gradient(center top, #a4ccec, #72a6d4 25%, #3282c2 45%, #357cbd 85%, #72a6d4); /* mozilla gradient background */

-webkit-border-radius: 8px; /* webkit border radius */

-webkit-box-shadow: 3px 3px 4px rgba(0,0,0,.5); /* webkit box shadow */

background: -webkit-gradient(linear, center top, center bottom, from(#a4ccec), color-stop(25%, #72a6d4), color-stop(45%, #3282c2), color-stop(85%, #357cbd), to(#72a6d4)); /* webkit gradient background */

}

.gradientbuttons li a:hover{

color: lightyellow;

}

.redtheme li a{

font-size:18px;

background: darkred;

background: -moz-linear-gradient(center top, #f5795d, #e55e3f 25%, #d02700 45%, #e55e3f 85%, #f5795d);

background: -webkit-gradient(linear, center top, center bottom, from(#f5795d), color-stop(25%, #e55e3f), color-stop(45%, #d02700), color-stop(85%, #e55e3f), to(#f5795d)); 

}

.greentheme li a{

font-size:12px;

background: green;

background: -moz-linear-gradient(center top, #7ad690, #3ec05c 25%, #298a40 45%, #3ec05c 85%, #7ad690);

background: -webkit-gradient(linear, center top, center bottom, from(#7ad690), color-stop(25%, #3ec05c), color-stop(45%, #298a40), color-stop(85%, #3ec05c), to(#7ad690)); 

}

.blacktheme li a{

font-size:16px;

background: black;

background: -moz-linear-gradient(center top, #9f9f9f, #686868 25%, #2a2a2a 45%, #686868 85%, #9f9f9f);

background: -webkit-gradient(linear, center top, center bottom, from(#9f9f9f), color-stop(25%, #686868), color-stop(45%, #2a2a2a), color-stop(85%, #686868), to(#9f9f9f)); 

}

.orangetheme li a{

font-size:14px;

background: #e55e3f;

background: -moz-linear-gradient(center top, #ecad9a, #e5937c 25%, #cf4c2a 45%, #e5937c 85%, #ecad9a);

background: -webkit-gradient(linear, center top, center bottom, from(#ecad9a), color-stop(25%, #e5937c), color-stop(45%, #cf4c2a), color-stop(85%, #e5937c), to(#ecad9a)); 

}

</style>

وبعد باید کلاس را به روش زیر برای متنمون تعریف کنیم

دکمه ی آبی

کد:

<div class="gradientbuttons">

<ul>

<li><a href="link">mahak</a></li>

</ul>

</div>

دکمه ی قرمز پر رنگ

کد:
<div class="gradientbuttons redtheme">

<ul>

<li><a href="link">mahak</a></li>

</ul>

</div>

دکمه ی سبز

کد:
<div class="gradientbuttons greentheme">

<ul>

<li><a href="link">mahak</a></li>

</ul>

</div>

دکمه ی سیاه

کد:
<div class="gradientbuttons blacktheme">

<ul>

<li><a href="link">mahak</a></li>

</ul>

</div>

دکمه ی نارنجی

کد:
<div class="gradientbuttons orangetheme">

<ul>

<li><a href="link">متن</a></li>

</ul>

</div>

نکات آموزشی سایت نویسی و سئو
پاسخ ها

سلام

سپاس استفاده کردم 

فقط یه سوال  : این دکمه ها قالب  وبلاگ رو سنگین  نمی کنن ؟ 

عالی بود . فقط یه سری به بخش ساخت لوگو هم بزن .

تازه سازي پاسخ ها
پست های مرتبط

سایت ای تی پج

راهنمای تولید محتوا برای سایت های رزبلاگی با رعایت اصول سئو

  • vahidsnh
  • سه شنبه 07 مرداد 1404 - 1:03

با این ابزار ها وبلاگ نویسی را شروع کنید

  • sparta2
  • جمعه 08 فروردین 1404 - 14:49

نداشتن ورودی گوگل

  • e-b
  • جمعه 08 فروردین 1404 - 14:38

آموزش فرستادن یک پست صحیح (بسیار مهم در هشت نکته)

  • maxsv
  • جمعه 08 فروردین 1404 - 14:32

سئو seo چیست؟

  • funpic
  • سه شنبه 09 شهریور 1400 - 14:05

دانلود و آموزش کامل استفاده از نسخه پرو Font Awesome

یک استراتژی SEO که شاید رقبای شما میل ندارند شما بدانید

  • sibmarket
  • چهارشنبه 11 دی 1398 - 22:03

آموزش قرار دادن favicon برای سایت تان

  • roj
  • جمعه 29 آذر 1398 - 21:20

ویژگی های رنگ آبی در طراحی سایت

  • yagubi
  • یکشنبه 07 مهر 1398 - 9:22

چند نکته درباره افزایش بازدید سایت بر اساس سئو

  • fns4565
  • شنبه 12 مرداد 1398 - 18:16

سایت خود را با استفاده از Gtmetrix بهینه کنید! (آموزش اختصاصی)

  • Jakob
  • یکشنبه 19 خرداد 1398 - 22:53

معرفی سایت های دزد محتوا به گوگل

  • xnet
  • یکشنبه 03 دی 1396 - 15:07

فرق بین عنوان سئو و توضیحات سئو چیست؟

  • sattar
  • شنبه 04 آذر 1396 - 10:43

█| سئو 100% رایگــــان

  • king98
  • سه شنبه 23 آبان 1396 - 17:24

پیشنهاد دهنده ی کلمات کلیدی

  • pjok
  • جمعه 23 تیر 1396 - 0:47

افزایش رنک و دایرکتوری ها

  • Jakob
  • چهارشنبه 21 تیر 1396 - 0:00

چرا لینک های NoFollow در دنیای سئو ، بی ارزش حساب میشوند ؟

نکات سئو سایت در سال 2016

  • fns4565
  • چهارشنبه 05 آبان 1395 - 18:08

آب موتور جستوجوی یاندکس در جوب ایران !

  • 98love
  • دوشنبه 11 آبان 1394 - 17:36
ارسال تیکت