Home arrow Style Sheets arrow Building Floating Lists With CSS

Building Floating Lists With CSS

In this four-part series of articles Iím going to show you how to build several floating HTML lists by means of a few basic CSS styles, and basic markup. In this manner you can implement this useful approach within your existing or future web sites. This is the first part.

Author Info:
By: Alejandro Gervasio
Rating: 4 stars4 stars4 stars4 stars4 stars / 4
December 03, 2008
  1. · Building Floating Lists With CSS
  2. · Building floating (X)HTML lists
  3. · Creating the structural markup of the floating (X)HTML lists
  4. · Completing the construction of floating lists

print this article

Building Floating Lists With CSS
(Page 1 of 4 )

Speaking frankly, how many times in your life as web designer have you found yourself using an HTML list to wrap the links of a fancy navigational bar? Well, if you're a strong advocate of modern web design techniques, then probably the answer to that question will be tens, even dozens of times. As you know, lists are very popular nowadays. They can be used for showing bulleted items in an elegant way, and for containing groups of links.

Building both vertical and horizontal HTML lists is a process that can be tackled with relative ease, particularly if you have an intermediate background in CSS. Things can get much harder, however, when it is necessary (for example) to display two vertical lists within a web document, particularly when the first one must be placed to the left of the web document and the second one positioned directly to the right of it.

In this particular case, the solution is much simpler than you may think initially. It involves working with a helpful CSS-based technique called, not surprisingly, floating lists. In the scenario described above, the first list could simply be floated to the left of the web page via a typical "float" CSS property, while the second one would be floated to the right of the pertinent page. Quite easy to achieve, right?

However, as with many other topics within the huge terrain of modern web development, using floating HTML lists requires adequate practice, apart from learning the corresponding theoretical concepts.

Having already introduced you to the subject of this article series, it's time to start learning how to construct some floating lists in a few easy steps. Let's get started!

blog comments powered by Disqus

- CSS Padding Overview
- CSS: Margins Overview
- Top CSS3 Button Tutorials
- More Top CSS3 Tutorials for Animation and Im...
- CSS Mega Menus: Adding Extra Sections
- CSS Mega Menus
- CSS3 Accordian Menu: Horizontally Display Hy...
- CSS Combinators: Working with Child Combinat...
- 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...

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 

Developer Shed Affiliates


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