My studying notebook

2010/07/07

Google Reader's Toggle Icon

7/07/2010 03:13:00 PM Posted by Unknown , 2 comments
If you have used Google Reader. There is a toggle icon you can click and expand all items view size. This toggle icon is a small blue arrow. Is it a image? No. It's just a CSS tips and tricks. How does CSS do it? Toggle icon DOM element... <td id="chrome-lhn-toggle"> <div id="chrome-lhn-toggle-icon"></div> </td> ... Toggle...

2010/07/02

Convert rgb color to hex color

7/02/2010 11:00:00 AM Posted by Unknown , , , 2 comments
If you have written HTML file, you must know that how to assign color to DOM element. You just need to assign CSS style to DOM element like<span style="color:#ff0000">This is text</span>It is very simple. But, we may want to change the color by Javascript like color picker. What's the problem? You may get the "rgb(255, 0, 0)" color value by Javascript.Then, you have to convert rgb to hex color or...