Home arrow Style Sheets arrow CSS Absolute Positioning: Creating a Quick Search Form
STYLE SHEETS

CSS Absolute Positioning: Creating a Quick Search Form


In this second article of the series, I cover in depth a use case where relative and absolute positioning can yield satisfactory results: the implementation of a quick search form within the heading section of a web page. The driving logic of this approach is not difficult to grasp, so you shouldn’t have any major problems applying it when developing your own websites.

Author Info:
By: Alejandro Gervasio
Rating: 4 stars4 stars4 stars4 stars4 stars / 3
August 17, 2010
TABLE OF CONTENTS:
  1. · CSS Absolute Positioning: Creating a Quick Search Form
  2. · Review: building some basic CSS-based tooltips
  3. · Using absolute positioning to build a quick search web form
  4. · Absolutely positioning the quick search form

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
CSS Absolute Positioning: Creating a Quick Search Form
(Page 1 of 4 )

If you ever thought that absolute positioning was a pretty useless property of CSS, with little or no functionality in the real world, I think you should reconsider your opinion and change your mind. When coupled with a relative position, the property can be really helpful in the construction of certain common interfacing components, such as tooltips, web forms and dynamic navigational bars, among others.

What’s more, to demonstrate that the combination of relative and absolute positioning actually yields satisfactory results in modern web design, in the first part of this series I went through the development of some basic CSS-based tooltips which used this combination to work as expected. Essentially, the whole development process was reduced to first defining a bunch of relatively-positioned containers, and then creating their associated tooltips, which were absolutely placed with reference to the containers in question. It was that easy, really.

As I just mentioned, though, absolute positioning can be successfully used in a few other situations as well, including the creation of elements in fixed layouts. A typical example of this is the implementation of a quick search form, which in most cases is placed in the top/right corner of a web page. Naturally, there are many approaches that can be used for building a web form like this. For illustrative purposes, however, in this second episode of the series I’m going to show how to tackle this process by using the relative/absolute positioning tandem referenced a moment ago.

With the goal of this tutorial already set, it’s time to start showing another practical example regarding the use of absolute positioning in CSS. Let’s get started!


blog comments powered by Disqus
STYLE SHEETS ARTICLES

- CSS Combinators: Using General Siblings
- Intro to CSS Combinators
- CSS Semicircles and Web Page Headers
- Drawing Circular Shapes with CSS3 and Border...
- More CSS Pagination Link Templates
- CSS Pagination Links
- Animated CSS3 Image Gallery: Advanced Transi...
- CSS3 Animated Image Gallery: Transitions
- CSS3 Properties: Fixed Heights with box-sizi...
- CSS3 Properties: Altering Strokes and 3D Eff...
- CSS3 Properties: Text-Stroke
- CSS3 Transitions: Width and Height Properties
- Creating a Drop Down Menu in CSS3
- Intro to CSS Transitions
- Create a Simple Transitioning Link Bar with ...

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 7 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials