<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Anna Ullrich : HTML</title><link>http://blogs.msdn.com/anna/archive/tags/HTML/default.aspx</link><description>Tags: HTML</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>The vexing hunt for HEX values</title><link>http://blogs.msdn.com/anna/archive/2009/02/11/the-vexing-hunt-for-hex-values.aspx</link><pubDate>Thu, 12 Feb 2009 10:49:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9414269</guid><dc:creator>Anna</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/anna/comments/9414269.aspx</comments><wfw:commentRss>http://blogs.msdn.com/anna/commentrss.aspx?PostID=9414269</wfw:commentRss><wfw:comment>http://blogs.msdn.com/anna/rsscomments.aspx?PostID=9414269</wfw:comment><description>&lt;P&gt;I’ve watched a lot of web developers jumping between their HTML code editor and their page comp in Photoshop to look up the hexadecimal value of colors in the page comp. Should be a simple process but the steps they take are often painful to watch. So I decided to write up some Photoshop tips to show some better ways to look up HEX values in Photoshop. &lt;/P&gt;
&lt;H1&gt;&lt;/H1&gt;
&lt;H1&gt;The musty crusty out-of-the-way Color Picker way&lt;/H1&gt;
&lt;P&gt;The workflow I see web devs use to look up HEX values in Photoshop is often:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Click a color in your page comp with the Eyedropper tool: &lt;BR&gt;&lt;BR&gt;&lt;IMG title="Eyedropper tool" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; DISPLAY: inline; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=33 alt="Eyedropper tool" src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/ThevexinghuntforHEXvalues_130A9/image_30.png" width=36 border=0 mce_src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/ThevexinghuntforHEXvalues_130A9/image_30.png"&gt; &lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;Double-click the foreground color swatch in the Tools panel &lt;BR&gt;&lt;BR&gt;
&lt;P&gt;&lt;IMG title="color swatch in Tools panel" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; DISPLAY: inline; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=59 alt="color swatch in Tools panel" src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/ThevexinghuntforHEXvalues_130A9/image_31.png" width=46 border=0 mce_src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/ThevexinghuntforHEXvalues_130A9/image_31.png"&gt;&lt;/P&gt;&lt;BR&gt;&lt;BR&gt;
&lt;P&gt;to open the Color Picker dialog box.&lt;/P&gt;&lt;BR&gt;&lt;BR&gt;
&lt;P&gt;&lt;IMG title="Color Picker (Foreground Color) dialog box" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; DISPLAY: inline; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=339 alt="Color Picker (Foreground Color) dialog box" src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/ThevexinghuntforHEXvalues_130A9/ColorPickerdialogPhotoshop_3.png" width=504 border=0 mce_src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/ThevexinghuntforHEXvalues_130A9/ColorPickerdialogPhotoshop_3.png"&gt; &lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;Select the hex value at the bottom of the Color Picker dialog box, and copy it. &lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;Then return to the code editor and paste.&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;Bleh, that’s pretty awkward, plus who likes the whole dialog box experience? …suddenly taking you out of your workspace and freezing the entire application to focus on only the dialog. Especially annoying when you’re in the dialog but discover you need to back up and select something else, then reopen the dialog box. &lt;/P&gt;
&lt;H1&gt;Use the Info panel to look up HEX values&lt;/H1&gt;
&lt;P&gt;The default INFO panel settings show the RGB and CMYK values of the color under your pointer as well as the XY coordinates and dimensions. But why just accept the default settings? You deserve better, so check this out. &lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Click the options button in the upper right of the panel and click &lt;STRONG&gt;Panel Options&lt;/STRONG&gt;: &lt;BR&gt;&lt;BR&gt;
&lt;P&gt;&lt;IMG title="Panel Options in Info panel options menu" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; DISPLAY: inline; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=221 alt="Panel Options in Info panel options menu" src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/ThevexinghuntforHEXvalues_130A9/image_32.png" width=368 border=0 mce_src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/ThevexinghuntforHEXvalues_130A9/image_32.png"&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;&lt;BR&gt;to open the Info Panel Options dialog box:&lt;/P&gt;&lt;BR&gt;&lt;BR&gt;
&lt;P&gt;&lt;IMG title="Info Panel Options dialog box" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; DISPLAY: inline; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=423 alt="Info Panel Options dialog box" src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/ThevexinghuntforHEXvalues_130A9/image_33.png" width=390 border=0 mce_src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/ThevexinghuntforHEXvalues_130A9/image_33.png"&gt;&lt;/P&gt;&lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;Then click the Mode menu under either the First Color Readout or Second Color Readout, and select &lt;STRONG&gt;Web Color&lt;/STRONG&gt; and then click &lt;STRONG&gt;OK&lt;/STRONG&gt;. &lt;BR&gt;&lt;BR&gt;Voila…now when you move your cursor over an image in Photoshop, the HEX values appear in the readout you just set in the panel options:&lt;BR&gt;&lt;BR&gt;
&lt;P&gt;&lt;IMG title="Info panel displaying with HEX values" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; DISPLAY: inline; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=244 alt="Info panel displaying with HEX values" src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/ThevexinghuntforHEXvalues_130A9/image_34.png" width=220 border=0 mce_src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/ThevexinghuntforHEXvalues_130A9/image_34.png"&gt;&lt;/P&gt;&lt;BR&gt;&lt;BR&gt;
&lt;P&gt;One inconvenience is that you can’t copy the values in the INFO panel, you’ll have to hand type the values into the code editor. And second, the values disappear as soon as you move your pointer away.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;H1&gt;Use the COLOR panel to look up HEX values&lt;/H1&gt;
&lt;P&gt;Next method I’ll show you is to use the COLOR panel. By default the panel provides you with RGB sliders:&lt;/P&gt;&lt;BR&gt;&lt;BR&gt;
&lt;P&gt;&lt;IMG title="COLOR panel" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; DISPLAY: inline; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=140 alt="COLOR panel" src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/ThevexinghuntforHEXvalues_130A9/image_35.png" width=220 border=0 mce_src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/ThevexinghuntforHEXvalues_130A9/image_35.png"&gt; &lt;/P&gt;&lt;BR&gt;&lt;BR&gt;
&lt;P&gt;But again, stop settling for the default settings! &lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Click the options button in the upper right, and then select Web Color Sliders: &lt;BR&gt;&lt;IMG title=image style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; DISPLAY: inline; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=332 alt=image src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/ThevexinghuntforHEXvalues_130A9/image_36.png" width=391 border=0 mce_src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/ThevexinghuntforHEXvalues_130A9/image_36.png"&gt;&amp;nbsp; &lt;BR&gt;&lt;BR&gt;Now after you click on a color with the Eyedropper tool the COLOR panel shows the HEX values: &lt;BR&gt;&lt;BR&gt;&lt;IMG title="COLOR panel with Web Color Sliders" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; DISPLAY: inline; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=139 alt="COLOR panel with Web Color Sliders" src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/ThevexinghuntforHEXvalues_130A9/image_37.png" width=220 border=0 mce_src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/ThevexinghuntforHEXvalues_130A9/image_37.png"&gt;&amp;nbsp; &lt;BR&gt;No musty dialog box required! Plus instead of four steps, all you have to do is one: click with the Eyedropper tool on a color. You could copy and paste each set of HEX values in the COLOR panel, but it’s probably easier to type them manually in the code editor. Or read on…&lt;/LI&gt;&lt;/OL&gt;
&lt;H1&gt;Use the Copy Color As HTML command…&lt;/H1&gt;
&lt;H2&gt;…In the COLOR panel&lt;/H2&gt;
&lt;P&gt;The Copy Color as HTML command can be useful in many circumstances. One place to access this command is in the Options menu in the COLOR panel:&lt;/P&gt;
&lt;P&gt;&lt;IMG title="Copy Color as HTML command on COLOR panel" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; DISPLAY: inline; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=331 alt="Copy Color as HTML command on COLOR panel" src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/ThevexinghuntforHEXvalues_130A9/image_38.png" width=390 border=0 mce_src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/ThevexinghuntforHEXvalues_130A9/image_38.png"&gt; &lt;/P&gt;
&lt;P&gt;When you click Copy Color as HTML, the current hexadecimal color in the COLOR panel is copied, and when you paste into the code editor, you get this:&lt;/P&gt;
&lt;P&gt;color="#d09d9c"&lt;/P&gt;
&lt;P&gt;Sometimes that’s useful, but not if you need something like &lt;/P&gt;
&lt;P&gt;background-color:#d09d9c&lt;/P&gt;
&lt;P&gt;or many other things, so would be better if what was copied was just the HEX value instead of Photoshop assuming the property you want.&lt;/P&gt;
&lt;H2&gt;…In your document&lt;/H2&gt;
&lt;P&gt;You can also access the Copy Color as HTML command while sampling color with the Eyedropper tool in your document. &lt;/P&gt;
&lt;P&gt;Just put the Eyedropper over the color you want to sample, then right-click and select Copy Color as HTML:&lt;/P&gt;
&lt;P&gt;&lt;IMG title=eyecolorCOPY style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; DISPLAY: inline; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=225 alt=eyecolorCOPY src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/ThevexinghuntforHEXvalues_130A9/eyecolorCOPY_3.png" width=186 border=0 mce_src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/ThevexinghuntforHEXvalues_130A9/eyecolorCOPY_3.png"&gt; &lt;/P&gt;
&lt;P&gt;Easy smeezy! &lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9414269" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/anna/archive/tags/tutorials/default.aspx">tutorials</category><category domain="http://blogs.msdn.com/anna/archive/tags/HTML/default.aspx">HTML</category><category domain="http://blogs.msdn.com/anna/archive/tags/Photoshop/default.aspx">Photoshop</category></item><item><title>HTML, CSS, and JavaScript reference at your fingertips: FireScope add-on for Firefox</title><link>http://blogs.msdn.com/anna/archive/2009/01/27/html-css-and-javascript-reference-at-your-fingertips-firescope-add-on-for-firefox.aspx</link><pubDate>Tue, 27 Jan 2009 22:27:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9378221</guid><dc:creator>Anna</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/anna/comments/9378221.aspx</comments><wfw:commentRss>http://blogs.msdn.com/anna/commentrss.aspx?PostID=9378221</wfw:commentRss><wfw:comment>http://blogs.msdn.com/anna/rsscomments.aspx?PostID=9378221</wfw:comment><description>&lt;P&gt;&lt;A href="http://www.sitepoint.com/" target=_blank mce_href="http://www.sitepoint.com"&gt;SitePoint&lt;/A&gt; has released the “first phase” of &lt;A href="http://reference.sitepoint.com/javascript" target=_blank mce_href="http://reference.sitepoint.com/javascript"&gt;their JavaScript reference&lt;/A&gt;, and they’ve also completely redesigned &lt;A href="http://reference.sitepoint.com/" target=_blank mce_href="http://reference.sitepoint.com/"&gt;their Reference Site&lt;/A&gt; for improved usability. To coincide with the redesign, they’ve released a handy Firefox add-on called &lt;A href="http://tools.sitepoint.com/firescope" target=_blank mce_href="http://tools.sitepoint.com/firescope"&gt;FireScope&lt;/A&gt; to integrate their HTML and CSS reference (sadly not their new JavaScript reference) into &lt;A href="http://getfirebug.com/" target=_blank mce_href="http://getfirebug.com/"&gt;Firebug&lt;/A&gt; and your Firefox browser:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://tools.sitepoint.com/firescope" target=_blank&gt;&lt;IMG title="FireScope logo" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; DISPLAY: inline; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=84 alt="FireScope logo" src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/HTMLCSSandJavaScriptreferenceatyourfinge_A129/image_3.png" width=244 border=0 mce_src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/HTMLCSSandJavaScriptreferenceatyourfinge_A129/image_3.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;&lt;A href="http://tools.sitepoint.com/firescope" mce_href="http://tools.sitepoint.com/firescope"&gt;http://tools.sitepoint.com/firescope&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;Here’s a screenshot of the new Reference panel in Firebug:&lt;/P&gt;
&lt;P&gt;&lt;IMG title="FireScope reference panel in Firebug in Firefox" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; DISPLAY: inline; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=237 alt="FireScope reference panel in Firebug in Firefox" src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/HTMLCSSandJavaScriptreferenceatyourfinge_A129/image_6.png" width=554 border=0 mce_src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/HTMLCSSandJavaScriptreferenceatyourfinge_A129/image_6.png"&gt; &lt;/P&gt;
&lt;P&gt;Read the list of features on the SitePoint website to learn more about the tool:&lt;/P&gt;
&lt;P&gt;&lt;A title=http://tools.sitepoint.com/firescope/ href="http://tools.sitepoint.com/firescope/" mce_href="http://tools.sitepoint.com/firescope/"&gt;http://tools.sitepoint.com/firescope/&lt;/A&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9378221" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/anna/archive/tags/CSS/default.aspx">CSS</category><category domain="http://blogs.msdn.com/anna/archive/tags/add-ins/default.aspx">add-ins</category><category domain="http://blogs.msdn.com/anna/archive/tags/browsers/default.aspx">browsers</category><category domain="http://blogs.msdn.com/anna/archive/tags/Firefox/default.aspx">Firefox</category><category domain="http://blogs.msdn.com/anna/archive/tags/JavaScript/default.aspx">JavaScript</category><category domain="http://blogs.msdn.com/anna/archive/tags/HTML/default.aspx">HTML</category></item></channel></rss>