Ironpaper Webintel: Knowledge base for internet business and web development.
Topic:

html

Turn Your Chrome Browser Into A Free Web Developer Toobox

Thursday, May 27th, 2010

Use Google Chrome to turn your browser into a web development toolbox. There is a broad range of tools that can allow you to bypass the expensive Adobe Web Standard suite of software and load up your web browser with some pretty hot tools for web design. Granted, this can also be done with Mozilla's Firefox web browser, but for now we will focus on Google's Chrome browser.

To start, explore the extensions marketplace for Google Chrome at chrome.google.com/extensions/featured/web_dev. If you make it to the extensions homepage, from the left hand menu select the FEATURED > WEB DEVELOPMENT option to find the available tools.

https://chrome.google.com/extensions/featured/web_dev

There is a mini arsenal of great tools designed for the Chrome Browser to be had from this marketplace. This is a fantastic alternative to high-end software options for the Mac and PC. This could be a godsend for small businesses trying to get off the ground but coping with the challenges of  growing pains and software licenses for web design. One of the great aspects of this approach is that you can basically build a web development workbench within about a half hour simply by installing some free  add-ons to your web browser.

Here are a few recommendations:


Editor
Easily edit HTML right inside your web browser. It provides a quite handy grouping of code tags and a wide text field that displays above your page.


Picnik
Capture web pages and edit images within your web browser using this great application, Picnik. For simple image editing tasks, this is a very speedy and efficient alternative to using Photoshop or Fireworks.


Web Developer
Adds a toolbar button with various web developer tools very similar to the Firefox Web Developer extension. It has some quite handy gadgets, including a CSS panel, Forms panel and a wide variety of image focused functions such as "find broken images."

There are a great many for nifty tools, such as:

  • CSS Reloader
  • A JavaScript Tester
  • PHP Documentation
  • JSonView
  • A validity icon in the address bar allowing you quick access using  Ctrl+Alt+V to validate the current page.

Crash Course In CSS Conditional Statements For Internet Explorer – IF IE

Sunday, May 23rd, 2010

For web designers, Internet Explorer is a true pain in the butt. This article gives web designers a weapon to combat the various rendering engines for the Internet Explorer browsers whether 5.5, 6, 7, or 8. Since Internet Explorer does not conform to web standards that other browsers, such as Mozilla's Firefox has tried to maintain, designers have had to resort to all kinds of hacks and duplications to make web pages appear the same across different web browsers.

There is a simple technique for executing code in Internet Explorer only, which can be a great last line of defense for cross browser compatibility in web design.

Firstly, there are two types of conditions that will be generally helpful to a web designer. One is positive, which means "if a condition is TRUE, then do this...". The other is negative, which means "if a condition is FALSE, then do this...".

Positive Condition
<!--[if condition]> HTML <![endif]-->
Negative Condition
<!--[if !condition]><![IGNORE[--><![IGNORE[]]> HTML <!--<![endif]-->

Here are a few types of conditions that you can use.

IE
Any version of IE
if lt IE
(insert version)
Versions less than the version specified in (insert version) for example if lt IE 6
lte IE (insert version)
Versions  less than or equal to version specified
IE (insert version)
Only version specified
gte IE (insert version)
Versions greater than or equal to version specified
gt IE (insert version)
Versions greater than the version of IE that you specified

In brief:
So basically, you can use this downlevel-hidden conditional comment to reveal something only in a specified version of Internet Explorer.

<!--[if IE 8]>
<p>This is Internet Explorer 8.</p>
<![endif]-->

Using IF IE Conditional Statements For Style Sheets

You can also use "If IE" conditional statements to reference (link to) style sheets for only Internet Explorer. Other web browsers such as Safari, Mozilla's Firefox and Opera will not reference the style sheet used in the conditional statement. This is a very common IE hack used by web designers to fix weird issues with spacing, margins, padding and other problems with pages rendered by IE.

Example:

<head>
<title>Test Page</title>
<link href="all-browsers.css" rel="stylesheet" type="text/css">
<!--[if IE]> <link href="only-ie.css" rel="stylesheet" type="text/css"> <![endif]-->
<!--[if lt IE 7]> <link href="ie-6-and-lower.css" rel="stylesheet" type="text/css"> <![endif]-->
<!--[if !lt IE 7]><![IGNORE[--><![IGNORE[]]> <link href="notie7.css" rel="stylesheet" type="text/css"> <!--<![endif]-->
<!--[if !IE]>--> <link href="not-ie.css" rel="stylesheet" type="text/css"> <!--<![endif]-->
</head>

Conditional Operators

! [if !IE] - The NOT operator.
lt [if lt IE 5.5] - The less-than operator.
lte [if lte IE 6] - The less-than or equal operator.
gt [if gt IE 5] - The greater-than operator.
gte [if gte IE 7] - The greater-than or equal operator.
( ) [if !(IE 7)] - Subexpression operators.
& [if (gt IE 5)&(lt IE 7)] - The AND operator. Returns true if all subexpressions evaluate to true
| [if (IE 6)|(IE 7)] - The OR operator.

Design Styles For Web Form Input Fields

Wednesday, May 12th, 2010

Forms can be a very important part of a website as often are a gateway in the conversion funnel. Web designers are finding very interesting and often subtle ways to make forms less painful and, at times, more appealing. Forms should not be confusing or overly cluttered. Also, it is important that forms have visual appeal to make the process of entering (or sharing) information more graceful and easier. This article will cover some interesting form design options for the input field. This will be less a "how to" than an aesthetic assembly. Below are some unstyled or minimally styled forms. ( Internet Explorer 6 default input form style. )

Now, below are some examples of Internet Explorer rendered form fields <textarea>, but with some style treatments. For example, changing the background color can a be a simple transformation to a default <textarea> or <input>.

input { background-color: #cccccc; }

Above, the HTML for changing an input field's background color to a light gray. More styles: There are a number of form elements that you can manipulate to better integrate HTML forms into your overall aesthetic direction. These elements will be a good place to start for designing a web form:

<form> <input> <select> <textarea> <label>

From providing borders to background images and background colors, forms can undergo some quite elegant transformations using beginner and intermediate level CSS. Contemporary Input Field Styles Below are some more contemporary implementations of web form input fields ( and buttons ).

The very famous Apple text input field. A small "finder" icon sits to the left of the input area. The graphic simplicity of this design makes many Apple fans feel like their products are more "intuitive." Below the first Apple input field is an activated (selected) field that displays a blue glow effect to demonstrate that this is an interactive object and it is in the process of an action / engagement with the user.

Google recently underwent a design update that changed the look and feel of it's field input area and search button. There was debate during the design process that the button would contain a deep blue background color to which many Google testers during the "dogfooding" process felt that it was a distraction away from the paid search ads that are Google's bread and butter. This softer and more integrated button became the winning element. This approach involves nesting the button within the search field so as to make the two elements (field and button) appear as one integrated unit. Also such nuances may seem trivial to most users of the web, for Google such decisions can directly impact their bottom line. Google's goal is to reduce the clutter and confusion of a web search and reduce the time it takes for a user to click on a result or ad. This hyper minimalist / efficiency driven approach has made Google millions, and the results of subtle design changes can be tested an segments of users before they roll out the final approach. Yet some have criticized this design process of testing, testing and more testing as lacking innovation and true creativity.

Twitter has been long praised for a sense of interesting and engaging web design. Here it takes a similar approach to encapsulating the button with the input field to make a single form object. The input and trigger (form and button) are simplified into a single action item that feels both cute and friendly, at the same time. Rounded edges help give form items more personality and a sense of ease or comfort--besides just simply being nice to look at.

Above are three other common approaches within contemporary web design for creating a sense of "ease of use" and friendliness. Two of the above examples use background images (background-image: url();) to give a very subtle treatment to the input field. Such approaches can use a repeatable image or one larger image whose edges will not be reaches as they extend beyond the confines of the field (in the background).  The third option uses more of a "simple design" approach which has a certain cute factor but also improves usability through clear, easy to read large font and padding between field edge and internal content. Note: the hightlight is caused at the OS level by Apple, but not a product of the form CSS.

Here is the code used to create the (above) third example (of the last three). The CSS in this demo is embedded, but if you were to recycle this CSS for use in other fields with a uniform application, it would be recommended to create a class for the CSS instructions.

<div style="margin: 10px 20px 10px 20px;">
<input style="padding: 5px; font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 16px; color: #666;" />
</div>