Articles tagged with ‘CSS’


29 November, 2009 / Development, Ink

Styling Input and Anchor tags as action buttons with cross-platform support

Attempting to style inline objects consistently across multiple browsers and platforms is difficult enough with unpredictable standards support — trying to maintain that exact style across form input elements as well has been near fantasy until recently. Thankfully, with the combined knowledge of the web development community and rapid adoption of reworked web standards by modern browsers, solutions are available.

For a recent project I had the task of applying one consistent button style to form inputs, anchor tags, and a handful of paragraph tags — with varying widths and background colors. Taking a cue from the brilliant work already posted on the Filament Group (which is derivative of the ALA sliding doors method and the work of Kevin Hale at Particletree), I developed a class that is applicable across a variety of elements. The examples given were generally applied to the button element; my project called for standard inputs with type ’submit’. The class scope is left open to allow for easier application to non-form elements. A few instances:

<a href="#" class="input-btn-link"><span>Add to Favorites</span></a>
<a href="#" class="input-btn-link small"><span>Add to Favorites</span></a>
<input class="input-btn" type="submit" value="Add to Favorites" />
<input class="input-btn small" type="submit" value="Add to Favorites" />
<input class="input-btn medium" type="submit" value="Add to Favorites" />
<input class="input-btn large" type="submit" value="Add to Favorites" />
<p class="input-btn">Add to Favorites/p>
</p>

Continue Reading »


5 September, 2009 / Ink, Notes

IE6 Considered

As my earlier post made clear, I have dropped support for Internet Explorer 6 — the percentage of visitors to this site who are still running the browser is negligible. However, I feel compelled to offer a compromise. Andy Clarke posted a very clever solution on his site a few months ago; a notion to serve the same basic, content-focused stylesheet to all IE6 users. He was then gracious enough to host it at Google Code as well. I have implemented that universal stylesheet on this site. Enjoy