background preloader

Accessible CSS Forms: Using CSS to Create a Two-Column Layout - replace tables with css layout form tutorial

Accessible CSS Forms: Using CSS to Create a Two-Column Layout - replace tables with css layout form tutorial
Summary: Websites have become less accessible and more complex over time according to recent studies. Learn how to buck the trend by creating fast, accessible CSS forms that work with modern browsers and gracefully degrade. In a recent study of web design patterns, Dr. Melody Ivory found that accessibility is the most underutilized aspect of good web page design (Ivory 2005). In fact websites have become more complex and less accessible over time (Hackett 2003). Less than 20% of the Fortune 100 have websites that are fully accessible (Loiacono 2004). A survey of CSS-based forms revealed many variations on a theme (see Vandersluis 2004). Figure 1: CSS Forms Layout Example (image) Table-Based Contact Form First let's look at the old way of laying out a form. Note how much of the XHTML code is used for layout. Unfortunately, laying out a form with tables can make it difficult to access for folks with disabilities. Building a CSS-based Form Add CSS Float, mix well Set Form Width CSS Gotchas

http://www.websiteoptimization.com/speed/tweak/forms/

Related:  CSS

Easy CSS Dropdown Menus Attractive dropdown menus have long been the realm of Flash developers and advanced JavaScript gurus. But that needn’t be the case. This tutorial will walk you through developing a clean, semantic dropdown menu using XHTML and CSS that works in all modern browsers! Let’s start with the XHTML first and foremost. It’s surprisingly simple: <ul id="navbar"><li><a href="#">Item One</a><ul><li><a href="#">Subitem One</a></li><li><a href="#">Second Subitem</a></li><li><a href="#">Numero Tres</a></li></ul></li><!

CSS-Based Forms: Modern Solutions - Smashing Magazine Advertisement In Web 2.0 registration and feedback forms can be found everywhere. Every start-up tries to attract visitors’ attention, so web-forms are becoming more and more important for the success of any company. In the end, exactly those web-forms are responsible for the first contact with potential customers. Let’s take a look, which modern solutions a web-developer can use, designing his/her next css-based form. Links checked: May/08 2008.

HipHop for PHP: Move Fast One of the key values at Facebook is to move fast. For the past six years, we have been able to accomplish a lot thanks to rapid pace of development that PHP offers. As a programming language, PHP is simple. Simple to learn, simple to write, simple to read, and simple to debug.

25 CSS Snippets for Some of the Most Common and Frustrating Tasks In this post we have 25 CSS snippets and hacks that will solve many of the most frequently used and, at times, frustrating CSS development tasks. Why reinvent the wheel when there are already plenty of time-saving pre-written CSS code snippets? As well as some classic and timeless CSS hacks you will also find many CSS3 snippets, like box-shadow, border-radius,linear-gradient and many more.

Prettier Accessible Forms It can be time consuming to make web forms both pretty and accessible. In particular, laying out forms where the form label and input are horizontally adjacent, as in the image below, can be a real problem. We used to use tables, which worked well in this scenario—but forms don’t constitute tabular data, so it’s a semantic Generate Pure CSS3 Toggle Button With On/Off FlipSwitch Generator If you are sick of using buttons to toggle something on or off, perhaps you may find a breath of fresh air in a flip switch instead. With the very nice improvement of web development nowadays, creating On/Off flip switch, like what you see in a mobile OS is very easy. You just need the right tool for it. Introducing the web app On/Off FlipSwitch Generator which will help you to easily create any mobile OS-like style for your custom On/Off button.

Form Elements: 40 CSS/JS Styling and Functionality Techniques - Noupe Design Blog Aug 17 2008 Designing effective web forms isn’t easy, as we need to figure out more practical styling and functionality techniques to provide a great user experience. Recently there have been a number of noteworthy techniques such as styling different form fields, live validation, Context highlighting, trading options from field to another, slider controls and more – using CSS and different Javascript libraries. Below we present findings of search to more than 40 tutorials and demos to showcase the capabilities and robustness of CSS and Javascript. You might be interested to check other CSS related posts: 1-Styling dropdown select boxes- To style a dropdown select box is heavy work.

Introduction to CSS3 Media Queries Introduction With the increasing popularity of mobile devices, web developers are required to ensure that their website renders well on different devices. One important aspect in such a rendering is applying different CSS rules to different requesting devices. To that end CSS3 media queries allow you to apply CSS rules depending on the media type and its capabilities. This article examines what CSS3 media queries are and how to use them in your web pages. Fancy Form Design Using CSS Article Every day this week, we’ll be publishing an article that’s been hand picked by our editor, as part of CSS Theme Week. Forms. Is there any other word that strikes as much fear into the hearts of grown web designers? I think that the reputation of forms as an untamable, ugly necessity has arisen for two reasons:

Style The Placeholder Text in Input Fields in Forms with CSS With CSS you can change the style of placeholder text in form and search fields, the placeholder HTML 5 form attribute is supported in the latest browser versions, how you get text pre-populated in an input field and use the placeholder attribute is explained here. You can change how the placeholder text style looks in the browser via CSS by default using the ::input-placeholder pseudo selector… By default the CSS styling in browsers is a small font with a light grey coloring, you can change this by using the CSS dynamic pseudo selectors, which will cover the major browsers Safari, Chrome, Firefox and IE… So in the example above a few of the CSS rules are restyling the default text font size, color and alignment.

Hang On Placeholders I remember when the behavior for placeholder="" text on inputs and textareas made that subtle functionality change in WebKit where the text would remain in place until you started typing rather than disappear on focus of the empty input. I think it may have been first on iOS actually, but now both stable Chrome and Safari do this. I also remember thinking it was a smart change. Of course the placeholder is no substitute for a real However, Jeremy Keith points out some research by Markus Earnst that suggests leaving the placeholder in place breaks some expectations and causes problems:

html - Align image in center and middle within div css list item width/height does not work html - Using CSS to change appearance of input fields causes distortion in height/width

Related: