Transparent Color In Web Appearance

Sometimes we want that our background text to be transparent to our base web background, this code can make your dream come true... cheers.. :p

Berkas:Cube Color.png

Example 1:

For the web with themes option include color, find the color code exm. "#ddddd" with the "#" only

For the web without themes option so you must find in your css editor, sometimes you can find it ini the .php

 

Example 2:

Change the code "background:#ddddd;" to "background:#;"

 

Example 3:

Change the code "background:#ddddd;" to "background:transparent;"

For any color at specific place change the code "color:#ddddd;" to "color:transparent;"

 

Example 4:

For the CSS Style this quiet complicated (for me :p).

CSS Stye have two property if you want make transparent appearance, first is "Opacity" and the second one is "background" with the value of RGBA (Red, Green, Blue, Alpha).

For the Opacity:

HTML Code:

<div class="transparan1"></div>
CSS Code:

.transparan1{background:#000;opacity:0.4;filter:alpha(opacity=40);}

 

Mean of value for opacity and alpha is if 0.1 equal to 10%, 0.2=20% and so on.

But if you want to use filter, so the value is without % symbol, exm. 12 mean 12%, 50=50%, and so on.

 

If we using Opacity property so the effect for the element with the opacity is effecting the whole elements including text, background color, image, frame.

 

For the RGBA:

HTML Code:

<div class="transparan2"></div>
CSS Code:

.transparan2{background:rgba(0,0,0,0.4);}

 

If you using background rgba so the effect is wont effecting the whole elements. But the other problem is, this trick doesn't support by Microsoft Internet Explorer 7 and 8, but actually I don't care about IE, coz for me a lot of user using mozilla or chrome this day.

 

You can find a reference of color code from:

http://id.wikipedia.org/wiki/Daftar_warna

http://id.wikipedia.org/wiki/Warna_web

http://htmlcssguides.com/web-design-tool/kode_hexadecimal_rgb.php

 

Table of Color from wikipedia;



































































































































































































































NamaContohKode warnaRGBCMYKHSV
Abu-abu#80808012812812858, 50, 47, 00, 0, 50
Biru#0000FF0025595, 73, 0, 0240, 100, 100
Biru laut#00008000128100, 99, 56, 46240, 100, 50
Coklat#964B0015075059, 82, 100, 4330, 100, 59
Emas#FFD70025521500, 17, 94, 051, 100, 100
Hijau#00FF000255062, 0, 100, 0120, 100, 100
Hitam#00000000093, 88, 89, 900, 0, 0
Kuning#FFFF0025525500, 0, 255, 060, 100, 100
Magenta#FF00FF25502550, 100, 0, 0300, 100, 100
Mawar#FF007F25501270, 100, 50, 0330, 100, 100
Merah#FF0000255000, 255, 255, 00, 100, 100
Merah marun#800000128000, 255, 255, 1270, 100, 50
Merah jambu#FFC0CB2551922030, 63, 52, 0350, 25, 100
Nila#6F00FF111025557, 100, 0, 0266, 100, 100
Oranye#FF7F0025512700, 50, 100, 030, 100, 100
Perak#C0C0C01921921920, 0, 0, 630, 0, 75
Putih#FFFFFF2552552550, 0, 0, 00, 0, 100
Sian#00FFFF0255255100, 0, 0, 0180,100,100
Ungu#BF00FF191025525, 100, 0, 0285, 100, 100
Violet#8F00FF143025544, 255, 0, 0274, 100, 100
Zaitun#80800012812800, 0, 100, 5060, 100, 50




Excerpted from: htmlcssguides.com

Comments

Popular posts from this blog

RSSTop55 Best Blog Directory And RSS Submission Sites

Inovasi Motor Hidrogen Mahasiswa UPI: Teknologi Nol Emisi yang Mampu Menempuh 428 Km dengan 2 Liter Hidrogen – Tonggak Baru Transportasi Hijau Indonesia

Syekh al-Albani menda’ifkan beberapa hadis dari Shahih Muslim?