![]() ![]()
|
Convert Hex to RGBThis is a problem that plagued me for months. My graphic program accepts colors as RGB (red, green, blue) values, however, the color that I wanted as a background, I only knew as a hexidecimal value. After months of guessing at RGB values and searching the web for a utility that converts it for you, I found the solution. For RGB and Hex values, all colors are made from combinations of the standard colors red, green, and blue, with each color’s value between 0 and 255. Hex values are (simple version to follow) codes used to represent the same values as RGB, and look like this FFCC00. First, break it into 3 equal parts, which are the values of red, green, and blue, respectively. Our sample now looks like this: Now the conversion: So, our end result, FFCC00, is equal to 255, 204, and 0 in decimals (and RGB values). This also works for converting from RGB to Hex! Define Your ImagesTroubled by slow-loading pages? Here’s a tip that will give the appearance of faster loading pages. Define the height and width of the images on your webpage, like this: < IMG SRC="mypic.gif" HEIGHT="120" WIDTH="60" > By doing this, you create a placeholder for the image which allows the browser to continue loading the page’s text before the image has been completely downloaded. The appearance of the text gives the illusion that the page is loading faster, and that makes a difference to your users. Compress Your GraphicsUsing graphic images on your webpage enhances the user’s experience and makes plain pages pleasing to the eye. However, the average surfer will wait no more than 25 seconds for a page to load, even when the slowdown is caused by their connection, not your page. To make sure that your page loads fast enough to keep the surfer and still allow a great amount of freedom to use the graphics you want, I highly recommend the use of a graphic compression tool. This tool will compress your .gif or .jpg files without sacrificing much in the way of image quality. Provide Alternate TextYou’ve just spent countless hours creating an extraordinary webpage loaded with beautiful graphics and effects. Now comes the surfer who has turned off graphics in their browser to help speed up downloads. They are completely lost on your site and can’t even find your navigation buttons. AAARRRGGGHHH! Don’t let this happen to you. After all, you spent hours upon hours creating pages that convey your message to the world; make sure that they can all see it. Simply use the ALT attribute of the < IMG > tag, like so: < IMG SRC="mypic.gif" ALT="A picture of me" > Control Position with a Single PixelHave you ever wanted more control over where your graphics appear on the page? HTML provides adequate formatting for most people and websites. However, if you’re like me, it’s not enough. This simple trick will provide you with pixel level control of the placement of images (although you can also use it for text, tables, etc.). The first step is to create a 1 pixel by 1 pixel gif image (transparent background works best, or make several different colored gifs) with your favorite software. Next, just use the image in your code expanding its width (and/or height) to meet your needs. Provide QualityThe best way to establish a name for yourself and your website is to provide quality content, whether it’s in the form of information, or a product or service. Don’t be fooled into thinking that just because XYZ browser comes out with a new enhancement, you have to use it to prove that you’re up with the times. Instead, distinguish yourself by the
|
|||||||||||||||||||||||||||||||||||||