Friday, June 14, 2013

Bảng màu sắc dùng cho thiết kế web



Chia sẻ cho các bạn bảng mã màu dùng trong thiết kế website. để có một website đẹp và giữ chân được người dùng thì việc sử dụng màu sắc trong thiết kế website sao cho hài hòa dễ nhìn là rất quan trọng. bạn có thể tham khảo thêm bài viết hướng dẫn lựa chọn màu sắc dùng trong thiết kế website.



Bảng màu theo mã HEX:
FFFEEEEEE999888777666555444333222111000FFCC00FF9900FF6600FF3300
99CC00AAAAAABBBBBBCCCCCCDDDDDDCC9900FFCC33FFCC66FF9966FF6633AA3300BB3300CC3300DD3300EE3300CC0033
CCFF00CCFF33333300666600999900CCCC00FFFF00CC9933CC6633330000660000990000CC0000FF0000FF3366FF0033
99FF00CCFF6699CC33666633999933CCCC33FFFF33996600993300663333993333CC3333FF3333CC3366FF6699FF0066
66FF0099FF6666CC33669900999966CCCC66FFFF66996633663300996666CC6666FF6666990033CC3399FF66CCFF0099
33FF0066FF3333990066CC0099FF33CCCC99FFFF99CC9966CC6600CC9999FF9999FF3399CC0066990066FF33CCFF00CC
00CC0033CC0033660066993399CC66CCFF99FFFFCCFFCC99FF9933FFCCCCFF99CCCC6699993366660033CC0099330033
33CC3366CC6600FF0033FF3366FF6699FF99CCFFCCCC99CC996699993399990099663366660066
00660033663300990033993366996699CC99FFCCFFFF99FFFF66FFFF33FFFF00FFCC66CCCC33CC
00330000CC3300663333996666CC9999FFCCCCFFFF3399FF99CCFFCCCCFFCC99FF9966CC6633993300669900CCCC00CC
00FF3333FF6600993300CC6633FF9999FFFF99CCCC0066CC6699CC9999FF9999CC9933FF6600CC660099CC33FFCC00FF
00FF6666FF9933CC6600996666FFFF66CCCC6699990033663366996666FF6666CC6666993300999933CCCC66FF9900FF
00FF9966FFCC33CC9933FFFF33CCCC3399993366660066990033993333FF3333CC3333993333666633CC9966FF6600FF
00FFCC33FFCC00FFFF00CCCC0099990066660033333399CC3366CC0000FF0000CC0000990000660000336633FF3300FF
00AA9900BB9900CC9900CCFF0099FF0099CC33CCFF66CCFF6699FF3366FF0033CC0033FF0066FF3300AA3300BB3300CC

Bảng màu theo mã RGB:
255,
255,
255
204,
204,
204
153,
153,
153
102,
102,
102
51,
51,
51
0,
0,
0
153,
204,
0
255,
204,
0
204,
153,
0
255,
204,
51
255,
204,
102
255,
153,
0
255,
153,
102
255,
102,
51
255,
102,
0
204,
51,
0
255,
51,
0
204,
0,
51
204,
255,
0
204,
255,
51
51,
51,
0
102,
102,
0
153,
153,
0
204,
204,
0
255,
255,
0
204,
153,
51
204,
102,
51
51,
0,
0
102,
0,
0
153,
0,
0
204,
0,
0
255,
0,
0
255,
51,
102
255,
0,
51
153,
255,
0
204,
255,
102
153,
204,
51
102,
102,
51
153,
153,
51
204,
204,
51
255,
255,
51
153,
102,
0
153,
51,
0
102,
51,
51
153,
51,
51
204,
51,
51
255,
51,
51
204,
51,
102
255,
102,
153
255,
0,
102
102,
255,
0
153,
255,
102
102,
204,
51
102,
153,
0
153,
153,
102
204,
204,
102
255,
255,
102
153,
102,
51
102,
51,
0
153,
102,
102
204,
102,
102
255,
102,
102
153,
0,
51
204,
51,
153
255,
102,
204
255,
0,
153
51,
255,
0
102,
255,
51
51,
153,
0
102,
204,
0
153,
255,
51
204,
204,
153
255,
255,
153
204,
153,
102
204,
102,
0
204,
153,
153
255,
153,
153
255,
51,
153
204,
0,
102
153,
0,
102
255,
51,
204
255,
0,
204
0,
204,
0
51,
204,
0
51,
102,
0
102,
153,
51
153,
204,
102
204,
255,
153
255,
255,
204
255,
204,
153
255,
153,
51
255,
204,
204
255,
153,
204
204,
102,
153
153,
51,
102
102,
0,
51
204,
0,
153
51,
0,
51
51,
204,
51
102,
204,
102
0,
255,
0
51,
255,
51
102,
255,
102
153,
255,
153
204,
255,
204
204,
153,
204
153,
102,
153
153,
51,
153
153,
0,
153
102,
51,
102
102,
0,
102
0,
102,
0
51,
102,
51
0,
153,
0
51,
153,
51
102,
153,
102
153,
204,
153
255,
204,
255
255,
153,
255
255,
102,
255
255,
51,
255
255,
0,
255
204,
102,
204
204,
51,
204
0,
51,
0
0,
204,
51
0,
102,
51
51,
153,
102
102,
204,
153
153,
255,
204
204,
255,
255
51,
153,
255
153,
204,
255
204,
204,
255
204,
153,
255
153,
102,
204
102,
51,
153
51,
0,
102
153,
0,
204
204,
0,
204
0,
255,
51
51,
255,
102
0,
153,
51
0,
204,
102
51,
255,
153
153,
255,
255
153,
204,
204
0,
102,
204
102,
153,
204
153,
153,
255
153,
153,
204
153,
51,
255
102,
0,
204
102,
0,
153
204,
51,
255
204,
0,
255
0,
255,
102
102,
255,
153
51,
204,
102
0,
153,
102
102,
255,
255
102,
204,
204
102,
153,
153
0,
51,
102
51,
102,
153
102,
102,
255
102,
102,
204
102,
102,
153
51,
0,
153
153,
51,
204
204,
102,
255
153,
0,
255
0,
255,
153
102,
255,
204
51,
204,
153
51,
255,
255
51,
204,
204
51,
153,
153
51,
102,
102
0,
102,
153
0,
51,
153
51,
51,
255
51,
51,
204
51,
51,
153
51,
51,
102
102,
51,
204
153,
102,
255
102,
0,
255
0,
255,
204
51,
255,
204
0,
255,
255
0,
204,
204
0,
153,
153
0,
102,
102
0,
51,
51
51,
153,
204
51,
102,
204
0,
0,
255
0,
0,
204
0,
0,
153
0,
0,
102
0,
0,
51
102,
51,
255
51,
0,
255
0,
204,
153
0,
153,
255
0,
153,
204
0,
204,
255
51,
204,
255
102,
204,
255
102,
153,
255
51,
102,
255
0,
102,
255
0,
51,
255
0,
51,
204
51,
0,
204


tuonglaiso.com

Thursday, June 13, 2013

7 Great CSS based text effects using the text-shadow property

Time for a bit of fun with CSS!

The following examples are all created using live text and the CSS text-shadow property. Apart from the Letterpress effect, all of the following examples make use of multiple shadows, and as such will only work on the following browsers.
  • Firefox 3.1+ (Mac/Win/Lin)
  • Safari 4+ (Mac/Win)
  • Chrome (Mac/Win)
  • Opera 9.5+ (Mac/Win/Lin)
Unfortunately Internet Explorer (6/7/8) has no support for the text-shadow property.
If you're not familiar with the text-shadow property here's a example and explanation:
h1 {        text-shadow: -2px 2px 3px #ff2d95;}
It breaks down like this: create a shadow below the h1 and offset it -2px horizontally,2px vertically, blur it by 3px, and colour it pink.

1)Classic Letterpress Effect


#letterpress h1 {        text-shadow: 0px 1px 1px #4d4d4d;        color: #222;        font: 80px 'LeagueGothicRegular';}
This is a very simple effect to achieve. To create the appearance of text that has been stamped, choose a text colour that is darker than the background, and then create a1px text shadow with a 1px blur and offset it down 1px. Make the text-shadow slightly lighter than the background.

2)Cloudy Text Effect


#cloud9 h1 {        text-shadow: 0px 0px 10px rgba(255,255,255,0.6), 0px 0px 30pxrgba(255,255,255,0.4), 0px 0px 50px rgba(255,255,255,0.3), 0px 0px 180pxrgba(255,255,255,0.3);        color: rgba(255,255,255,0);        font: 80px 'ChunkFiveRegular';}
This effect relies on multiple text shadows and rgba colours. If you don't already know, rgba colours work like this
rgba(255,255,255,0.5)
Basically, that's white in rgb, (255,255,255) at 50% transparency (0.5).
To make the Cloudy effect, first I gave the text an rgba value of rgba(255,255,255,0)= completely transparent, and then built the 'Cloud' up from layers of varying transparency and blur.

3)Embossed Text Effect


#embossed h1 {        text-shadow: -1px -1px 1px #fff, 1px 1px 1px #000;        color: #9c8468;        opacity: 0.3;        font: 80px 'Museo700';}
To Create the Embossed look, I used 2 diagonally offset shadows. One white shadow offset to the top left, and one black shadow offset to the bottom right. Then the text was given a colour similar to the background image and the whole thing was given an opacity of 0.3 so that the background image could be seen through the text.

4)City Lights Text


#citylights h1 {        color: #fff;        text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #fff, 0 0 20px #ff2d95, 0 0 30px #ff2d95, 0 0 40px #ff2d95, 0 0 50px #ff2d95, 0 0 75px #ff2d95;        letter-spacing: 5px;        font: 80px 'MisoRegular';}
This is built up from 8 shadows with no offset and increasing amounts of blur. The first three shadows are white like the text, the remaining five shadows are all pink.

5)Burning Text Effect


#burning h1 {        color: #fff;        text-shadow: 0px -1px 4px white, 0px -2px 10px yellow, 0px -10px20px #ff8000, 0px -18px 40px red;        font: 80px 'BlackJackRegular';}
Three shadows — white, yellow, red — with increasing vertical offset and blur.

6)Retro Text Effect


#retro h1 {        color: #d7ceb2;        text-shadow: 3px 3px 0px #2c2e38, 5px 5px 0px #5c5f72;        font: 80px 'BazarMedium';        letter-spacing: 10px;}
Two diagonally offset shadows without blur. The first shadow is exactly the same colour as the background, the second is a lighter shade of the background colour.

7)3D Text Effect


#three-d h1 {        color: #fff;        text-shadow: 0px 1px 0px #999, 0px 2px 0px #888, 0px 3px 0px #777, 0px 4px 0px #666, 0px 5px 0px #555, 0px 6px 0px #444, 0px 7px 0px #333, 0px 8px 7px #001135;        font: 80px 'ChunkFiveRegular';}
Bold white text, with seven descending shadows, each has no blur and is an increasingly darker shade of grey. The eighth shadow is dark-blue and blurred to enhance the overall effect.

Conclusion

I have used the following fonts:
  • League Gothic Regular: Letterpress Effect
  • Chunk Five Regular: Cloudy Effect & 3D Effect
  • Museo 700: Embossed Effect
  • Miso Regular: City Lights Effect
  • Black Jack Regular: Burning Effect
  • Bazar Regular: Retro Effect
In each of these cases the choice of font and background can greatly influence the result. For example, in the last example the slight perspective of the blue background adds to the 3D effect.

www.midwinter-dg.com